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