mirror of
https://github.com/roles-ansible/ansible_role_avahi_daemon.git
synced 2024-08-16 15:09:48 +02:00
24 lines
577 B
YAML
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 }}"
|