Set Bash executable explicitly

This commit is contained in:
Bert Van Vreckem 2019-06-23 14:48:32 +02:00
parent 3d5eb23b0c
commit 83b6add0f4

View File

@ -25,6 +25,8 @@
shell: >
set -o nounset -o pipefail -o errexit &&
smbd --version | sed 's/Version //'
args:
executable: /bin/bash
register: samba_version
changed_when: false
tags: samba
@ -150,6 +152,8 @@
(pdbedit --user={{ item.name }} 2>&1 > /dev/null) \
|| (echo {{ item.password }}; echo {{ item.password }}) \
| smbpasswd -s -a {{ item.name }}
args:
executable: /bin/bash
with_items: "{{ samba_users }}"
no_log: true
register: create_user_output