openstack-ansible-tests/ansible-lint/test/no-log-passwords-failure.yml
Jean-Philippe Evrard 9d95df9ce2 Add a rule to prevent passwords to be logged
Lint rule to make sure no module argument looking like "password"
will get logged.

Change-Id: I180b77faf7aaab57d1c48fc993e43f08c4fb16f6
Closes-Bug: #1760878
(cherry picked from commit c00ecb858d)
2018-04-17 10:21:38 +00:00

22 lines
408 B
YAML

- tasks:
- name: Fail no_log isn't used
user:
name: bidule
password: "wow"
state: absent
- name: Fail when no_log is set to False
user:
name: bidule
password: "wow"
state: absent
no_log: False
- name: Fail when no_log is set to no
user:
name: bidule
password: "wow"
state: absent
no_log: no