Merge pull request #14 from SvenEeckeman/master

Fixed an issue with the "Create Samba users if they don't exist yet" task
This commit is contained in:
Bert Van Vreckem 2017-01-20 10:34:46 +01:00 committed by GitHub
commit 13ab3a564c

View File

@ -93,7 +93,7 @@
- name: Create Samba users if they don't exist yet
shell: >
(pdbedit -L | grep {{ item.name }} 2>&1 > /dev/null) \
(pdbedit --user={{ item.name }} 2>&1 > /dev/null) \
|| (echo {{ item.password }}; echo {{ item.password }}) \
| smbpasswd -s -a {{ item.name }}
with_items: "{{ samba_users }}"