Move samba configuration task before starting service

Arch Linux does not have a default config file and will otherwise fail to start
This commit is contained in:
Bert Van Vreckem 2016-07-29 09:56:04 +02:00
parent 4e845d4141
commit f7a7b457da

View File

@ -64,6 +64,16 @@
tags: samba tags: samba
when: samba_create_varwww_symlinks 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 - name: Start Samba service
service: service:
name: "{{ samba_service }}" name: "{{ samba_service }}"
@ -78,16 +88,6 @@
enabled: yes enabled: yes
tags: samba 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 - name: Create Samba users if they don't exist yet
shell: > shell: >
(pdbedit -L | grep {{ item.name }} 2>&1 > /dev/null) \ (pdbedit -L | grep {{ item.name }} 2>&1 > /dev/null) \