Fix service names & start services in a single task

This commit is contained in:
Bert Van Vreckem 2017-05-09 14:23:25 +02:00
parent 87d4fe0eca
commit 86091a742f

View File

@ -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 }}"