- name: restart samba service: name={{ item }} state=restarted with_items: - smbd - nmbd - winbind