From 9002e14e609b953c70c5c7cd2ef460e4190a4bb6 Mon Sep 17 00:00:00 2001 From: Bert Van Vreckem Date: Sun, 20 May 2018 00:49:54 +0200 Subject: [PATCH] Remove quotes from smbpasswd/pdbedit invocation --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index d408b7b..0d328fe 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -96,9 +96,9 @@ - name: Create Samba users if they don't exist yet shell: > - (pdbedit --user="{{ item.name }}" 2>&1 > /dev/null) \ + (pdbedit --user={{ item.name }} 2>&1 > /dev/null) \ || (echo {{ item.password }}; echo {{ item.password }}) \ - | smbpasswd -s -a "{{ item.name }}" + | smbpasswd -s -a {{ item.name }} with_items: "{{ samba_users }}" register: create_user_output changed_when: "'Added user' in create_user_output.stdout"