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:
commit
13ab3a564c
@ -93,7 +93,7 @@
|
|||||||
|
|
||||||
- name: Create Samba users if they don't exist yet
|
- name: Create Samba users if they don't exist yet
|
||||||
shell: >
|
shell: >
|
||||||
(pdbedit -L | grep {{ item.name }} 2>&1 > /dev/null) \
|
(pdbedit --user={{ item.name }} 2>&1 > /dev/null) \
|
||||||
|| (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 }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user