From f7a7b457dab048bfa4b1cdcd16eb2a2a9fbbc5ef Mon Sep 17 00:00:00 2001 From: Bert Van Vreckem Date: Fri, 29 Jul 2016 09:56:04 +0200 Subject: [PATCH] Move samba configuration task before starting service Arch Linux does not have a default config file and will otherwise fail to start --- tasks/main.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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) \