Fixed #6, idempotence of adding users
This commit is contained in:
parent
930d7e72ce
commit
4fe403d5f3
@ -94,4 +94,6 @@
|
|||||||
|| (echo {{ item.password }}; echo {{ item.password }}) \
|
|| (echo {{ item.password }}; echo {{ item.password }}) \
|
||||||
| smbpasswd -s -a {{ item.name }}
|
| smbpasswd -s -a {{ item.name }}
|
||||||
with_items: "{{ samba_users }}"
|
with_items: "{{ samba_users }}"
|
||||||
|
register: create_user_output
|
||||||
|
changed_when: "'Added user' in create_user_output.stdout"
|
||||||
tags: samba
|
tags: samba
|
||||||
|
Loading…
Reference in New Issue
Block a user