Fixed #6, idempotence of adding users

This commit is contained in:
Bert Van Vreckem 2016-05-29 09:50:49 +02:00
parent 930d7e72ce
commit 4fe403d5f3

View File

@ -94,4 +94,6 @@
|| (echo {{ item.password }}; echo {{ item.password }}) \
| smbpasswd -s -a {{ item.name }}
with_items: "{{ samba_users }}"
register: create_user_output
changed_when: "'Added user' in create_user_output.stdout"
tags: samba