Remove quotes from smbpasswd/pdbedit invocation
This commit is contained in:
parent
687c9f6605
commit
9002e14e60
@ -96,9 +96,9 @@
|
|||||||
|
|
||||||
- name: Create Samba users if they don't exist yet
|
- name: Create Samba users if they don't exist yet
|
||||||
shell: >
|
shell: >
|
||||||
(pdbedit --user="{{ 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 }}"
|
||||||
register: create_user_output
|
register: create_user_output
|
||||||
changed_when: "'Added user' in create_user_output.stdout"
|
changed_when: "'Added user' in create_user_output.stdout"
|
||||||
|
Loading…
Reference in New Issue
Block a user