Fix service names & start services in a single task
This commit is contained in:
parent
f88f793cab
commit
87d4fe0eca
@ -77,18 +77,12 @@
|
|||||||
- Restart WinBind
|
- Restart WinBind
|
||||||
tags: samba
|
tags: samba
|
||||||
|
|
||||||
- name: Start Samba service
|
- name: Start Samba service(s)
|
||||||
service:
|
service:
|
||||||
name: "{{ samba_service }}"
|
name: "{{ item }}"
|
||||||
state: started
|
|
||||||
enabled: yes
|
|
||||||
tags: samba
|
|
||||||
|
|
||||||
- name: Start WindBind service
|
|
||||||
service:
|
|
||||||
name: "{{ winbind_service }}"
|
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
with_items: "{{ samba_services }}"
|
||||||
tags: samba
|
tags: samba
|
||||||
|
|
||||||
- name: Create Samba users if they don't exist yet
|
- name: Create Samba users if they don't exist yet
|
||||||
|
@ -10,7 +10,8 @@ samba_selinux_booleans: []
|
|||||||
|
|
||||||
samba_configuration: /etc/samba/smb.conf
|
samba_configuration: /etc/samba/smb.conf
|
||||||
|
|
||||||
samba_service: smbd
|
samba_services:
|
||||||
winbind_service: nmbd
|
- smbd
|
||||||
|
- nmbd
|
||||||
|
|
||||||
samba_www_documentroot: /var/www
|
samba_www_documentroot: /var/www
|
||||||
|
@ -11,7 +11,7 @@ samba_selinux_booleans: []
|
|||||||
|
|
||||||
samba_configuration: /etc/samba/smb.conf
|
samba_configuration: /etc/samba/smb.conf
|
||||||
|
|
||||||
samba_service: smbd
|
samba_services:
|
||||||
winbind_service: nmbd
|
- samba
|
||||||
|
|
||||||
samba_www_documentroot: /var/www
|
samba_www_documentroot: /var/www
|
||||||
|
@ -15,7 +15,8 @@ samba_selinux_booleans:
|
|||||||
|
|
||||||
samba_configuration: /etc/samba/smb.conf
|
samba_configuration: /etc/samba/smb.conf
|
||||||
|
|
||||||
samba_service: smb
|
samba_services:
|
||||||
winbind_service: nmb
|
- smb
|
||||||
|
- nmb
|
||||||
|
|
||||||
samba_www_documentroot: /var/www/html
|
samba_www_documentroot: /var/www/html
|
||||||
|
Loading…
Reference in New Issue
Block a user