blob: 467883a03d7180bef8d333ef1b01e13d31acc672 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|