diff --git a/tasks/main.yml b/tasks/main.yml index d4c5e78..e6366ee 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -94,4 +94,6 @@ || (echo {{ item.password }}; echo {{ item.password }}) \ | smbpasswd -s -a {{ item.name }} with_items: "{{ samba_users }}" + register: create_user_output + changed_when: "'Added user' in create_user_output.stdout" tags: samba