--- - name: restart samba service: name: "{{ item }}" state: restarted with_items: - 'nmbd' - 'smbd'