From 83b6add0f44e78cff1ea3ef26fff6401c13eda31 Mon Sep 17 00:00:00 2001 From: Bert Van Vreckem Date: Sun, 23 Jun 2019 14:48:32 +0200 Subject: [PATCH] Set Bash executable explicitly --- tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index f83dd1e..8bda54b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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