Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[donotmerge] Allow setting artifact with no_log #306

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions gather_facts_set_stats.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

- hosts: all
gather_facts: true
gather_facts: true
tasks:
- name: set a fact man
set_fact:
Expand Down Expand Up @@ -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) }}"
4 changes: 3 additions & 1 deletion test_set_stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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