Set Bash executable explicitly
This commit is contained in:
parent
3d5eb23b0c
commit
83b6add0f4
@ -25,6 +25,8 @@
|
|||||||
shell: >
|
shell: >
|
||||||
set -o nounset -o pipefail -o errexit &&
|
set -o nounset -o pipefail -o errexit &&
|
||||||
smbd --version | sed 's/Version //'
|
smbd --version | sed 's/Version //'
|
||||||
|
args:
|
||||||
|
executable: /bin/bash
|
||||||
register: samba_version
|
register: samba_version
|
||||||
changed_when: false
|
changed_when: false
|
||||||
tags: samba
|
tags: samba
|
||||||
@ -150,6 +152,8 @@
|
|||||||
(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 }}
|
||||||
|
args:
|
||||||
|
executable: /bin/bash
|
||||||
with_items: "{{ samba_users }}"
|
with_items: "{{ samba_users }}"
|
||||||
no_log: true
|
no_log: true
|
||||||
register: create_user_output
|
register: create_user_output
|
||||||
|
Loading…
Reference in New Issue
Block a user