summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/transform-no-log-password.yml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/playbooks/transform-no-log-password.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/playbooks/transform-no-log-password.yml b/examples/playbooks/transform-no-log-password.yml
new file mode 100644
index 0000000..467883a
--- /dev/null
+++ b/examples/playbooks/transform-no-log-password.yml
@@ -0,0 +1,22 @@
+---
+- name: Fixture for no log password
+ hosts: all
+ tasks:
+ - name: Fail when no_log is set to False
+ ansible.builtin.user:
+ name: john_doe
+ password: "{{ item }}"
+ state: absent
+ with_items:
+ - wow
+ - now
+ no_log: false
+
+ - name: Fail when no_log is absent
+ ansible.builtin.user:
+ name: john_doe
+ password: "{{ item }}"
+ state: absent
+ with_items:
+ - wow
+ - now