ansible/roles/samba/tasks/config.yaml

16 lines
278 B
YAML

---
- name: Copy "{{ samba.config }}"
template:
src: "{{ samba.config }}"
dest: /etc/samba/smb.conf
become: true
register: smbconf
- name: Restart nmbd.service
systemd:
name: nmbd
state: restarted
enabled: yes
become: true
when: smbconf.changed