From 86091a742f0657b351a7395bbbfa6226078edc19 Mon Sep 17 00:00:00 2001 From: Bert Van Vreckem Date: Tue, 9 May 2017 14:23:25 +0200 Subject: [PATCH] Fix service names & start services in a single task --- handlers/main.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index a12f4dd..43799db 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -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 }}"