Debian Codegraph @

test/integration/targets/user/tasks/test_create_user_uid.yml

raw
1 # test adding user with uid
2 # https://github.com/ansible/ansible/issues/62969
3 - name: remove the test user
4 user:
5 name: ansibulluser
6 state: absent
7
8 - name: try to create a user with uid
9 user:
10 name: ansibulluser
11 state: present
12 uid: 572
13 register: user_test01_0
14
15 - name: create the user again
16 user:
17 name: ansibulluser
18 state: present
19 uid: 572
20 register: user_test01_1
21
22 - name: validate results for testcase 0
23 assert:
24 that:
25 - user_test01_0 is changed
26 - user_test01_1 is not changed