1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_avahi_daemon.git synced 2024-08-16 15:09:48 +02:00
ansible_role_avahi_daemon/tasks/avahi_services.yml
2021-11-03 17:09:36 +01:00

24 lines
577 B
YAML

---
- name: mkdir /etc/avahi/services/
become: true
ansible.builtin.file:
owner: root
group: root
mode: '0755'
state: directory
path: "{{ item }}"
with_items:
- '/etc/avahi'
- '/etc/avahi/services'
- name: Copy configured avahi services
become: true
ansible.builtin.template:
src: 'templates/avahi.service.j2'
dest: "/etc/avahi/services/{{ item.service | lower }}.service"
owner: root
group: root
mode: 'u=rw,g=r,o=r'
notify:
- systemctl restart avahi-daemon.service
with_items: "{{ avahi_daemon__services }}"