From e1f01fcf8fc0f8e040d2546501f0c6977d2d7037 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Tue, 25 Jul 2023 15:42:05 -0400 Subject: [PATCH 1/3] Allow setting artifact with no_log --- gather_facts_set_stats.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gather_facts_set_stats.yml b/gather_facts_set_stats.yml index 1c9004cc70..77dd92354b 100644 --- a/gather_facts_set_stats.yml +++ b/gather_facts_set_stats.yml @@ -1,7 +1,7 @@ --- - hosts: all - gather_facts: true + gather_facts: true tasks: - name: set a fact man set_fact: @@ -36,9 +36,9 @@ float: 1.0 unicode: '竳䙭韽' boolean: true - none: null + none: null list: [] object: {} empty_list: [] - empty_object: {} - + empty_object: {} + no_log: "{{ artifact_no_log | default(false) }}" From ad75df2f7737bc8b27d7f9dab61664c451f1fc44 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Tue, 25 Jul 2023 15:45:40 -0400 Subject: [PATCH 2/3] Add optional no_log to other set_stats playbook --- test_set_stats.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test_set_stats.yml b/test_set_stats.yml index 2ffaab2b3c..3e688e4782 100644 --- a/test_set_stats.yml +++ b/test_set_stats.yml @@ -23,14 +23,16 @@ float: 1.0 unicode: '竳䙭韽' boolean: true - none: null + none: null list: [] object: {} empty_list: [] empty_object: {} fail_at_end: false + artifact_no_log: false tasks: - set_stats: data: "{{ set_stats_data }}" + no_log: "{{ artifact_no_log }}" - fail: "Intentionally failing because variable 'fail_at_end' was set to {{ fail_at_end }}" when: fail_at_end From b4ece8430fa9d2383ad5a629bb9ecf8b2dce4f0b Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Tue, 25 Jul 2023 16:20:47 -0400 Subject: [PATCH 3/3] Fix no_log indent --- gather_facts_set_stats.yml | 2 +- test_set_stats.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gather_facts_set_stats.yml b/gather_facts_set_stats.yml index 77dd92354b..bd26950385 100644 --- a/gather_facts_set_stats.yml +++ b/gather_facts_set_stats.yml @@ -41,4 +41,4 @@ object: {} empty_list: [] empty_object: {} - no_log: "{{ artifact_no_log | default(false) }}" + no_log: "{{ artifact_no_log | default(false) }}" diff --git a/test_set_stats.yml b/test_set_stats.yml index 3e688e4782..3defbc53cf 100644 --- a/test_set_stats.yml +++ b/test_set_stats.yml @@ -33,6 +33,6 @@ tasks: - set_stats: data: "{{ set_stats_data }}" - no_log: "{{ artifact_no_log }}" + no_log: "{{ artifact_no_log }}" - fail: "Intentionally failing because variable 'fail_at_end' was set to {{ fail_at_end }}" when: fail_at_end