ansible/roles/samba/tasks/config.yaml

16 lines
274 B
YAML

---
- name: Copy "{{ smb_config }}"
template:
src: "{{ smb_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