mirror of
https://github.com/roles-ansible/ansible_role_avahi_daemon.git
synced 2024-08-16 15:09:48 +02:00
26 lines
651 B
YAML
26 lines
651 B
YAML
---
|
|
- name: Create Directory /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'
|
|
notify:
|
|
- Run systemctl restart avahi-daemon.service
|
|
|
|
- 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:
|
|
- Run systemctl restart avahi-daemon.service
|
|
with_items: "{{ avahi_daemon__services }}"
|