diff --git a/tasks/main.yml b/tasks/main.yml index e6366ee..e59fba6 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -64,6 +64,16 @@ tags: samba when: samba_create_varwww_symlinks +- name: Samba configuration + template: + dest: "{{ samba_configuration }}" + src: smb.conf.j2 + validate: 'testparm -s %s' + notify: + - Restart Samba + - Restart WinBind + tags: samba + - name: Start Samba service service: name: "{{ samba_service }}" @@ -78,16 +88,6 @@ enabled: yes tags: samba -- name: Samba configuration - template: - dest: "{{ samba_configuration }}" - src: smb.conf.j2 - validate: 'testparm -s %s' - notify: - - Restart Samba - - Restart WinBind - tags: samba - - name: Create Samba users if they don't exist yet shell: > (pdbedit -L | grep {{ item.name }} 2>&1 > /dev/null) \