Add enable-mdns.yaml

This commit is contained in:
2025-06-06 15:18:27 +02:00
parent 5e0dadac8d
commit 555b480965
2 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
---
- name: Enable MDNS
hosts: all
become: true
tasks:
- name: Install avahi-daemon
apt:
update_cache: true
upgrade: yes
name: avahi-daemon
state: present
- name: Start and enable avahi-daemon
systemd:
name: avahi-daemon
state: started
enabled: true