Fix service names & start services in a single task
This commit is contained in:
parent
87d4fe0eca
commit
86091a742f
@ -1,11 +1,7 @@
|
||||
# File: roles/samba/handlers/main.yml
|
||||
---
|
||||
- name: Restart Samba
|
||||
- name: Restart Samba services
|
||||
service:
|
||||
name: "{{ samba_service }}"
|
||||
state: restarted
|
||||
|
||||
- name: Restart WinBind
|
||||
service:
|
||||
name: "{{ winbind_service }}"
|
||||
name: "{{ item }}"
|
||||
state: restarted
|
||||
with_items: "{{ samba_service }}"
|
||||
|
Loading…
Reference in New Issue
Block a user