ansible/roles/samba/tasks/config.yaml

16 lines
278 B
YAML
Raw Normal View History

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