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:
parent
4e845d4141
commit
f7a7b457da
@ -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) \
|
||||||
|
Loading…
Reference in New Issue
Block a user