Fix service names & start services in a single task

This commit is contained in:
Bert Van Vreckem 2017-05-09 14:19:01 +02:00
parent f88f793cab
commit 87d4fe0eca
4 changed files with 11 additions and 15 deletions

View File

@ -77,18 +77,12 @@
- Restart WinBind
tags: samba
- name: Start Samba service
- name: Start Samba service(s)
service:
name: "{{ samba_service }}"
state: started
enabled: yes
tags: samba
- name: Start WindBind service
service:
name: "{{ winbind_service }}"
name: "{{ item }}"
state: started
enabled: yes
with_items: "{{ samba_services }}"
tags: samba
- name: Create Samba users if they don't exist yet

View File

@ -10,7 +10,8 @@ samba_selinux_booleans: []
samba_configuration: /etc/samba/smb.conf
samba_service: smbd
winbind_service: nmbd
samba_services:
- smbd
- nmbd
samba_www_documentroot: /var/www

View File

@ -11,7 +11,7 @@ samba_selinux_booleans: []
samba_configuration: /etc/samba/smb.conf
samba_service: smbd
winbind_service: nmbd
samba_services:
- samba
samba_www_documentroot: /var/www

View File

@ -15,7 +15,8 @@ samba_selinux_booleans:
samba_configuration: /etc/samba/smb.conf
samba_service: smb
winbind_service: nmb
samba_services:
- smb
- nmb
samba_www_documentroot: /var/www/html