diff --git a/README.md b/README.md index cba8c48..f78c6fe 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Ansible role to install the avahi_daemon and optionally announce some services. Variables ----------- -In the ``avahi_services`` variable you can define the services you want to announce. +In the ``avahi_daemon__services`` variable you can define the services you want to announce. Here is a list with available parameters: + ``service``: Service Name *(HTTP/SSH/...)* ***(required)*** + ``port``: Service Port ***(required)*** @@ -20,7 +20,7 @@ Here is a list with available parameters: Example: ```yaml --- -avahi_services: +avahi_daemon__services: - service: 'SSH' port: 22 protocol: 'any' @@ -55,13 +55,14 @@ daddr ff02::fb proto udp dport 5353 ACCEPT; Links ----- - * http://dns-sd.org/ * http://www.multicastdns.org/ - -* https://kodi.wiki/view/Avahi_Zeroconf#Sample_service_configurations - -* https://www.avahi.org/ -* https://github.com/lathiat/avahi - +* https://www.ietf.org/rfc/rfc6762.txt * http://www.dns-sd.org/ServiceTypes.html + +- https://www.avahi.org/ +- https://github.com/lathiat/avahi + ++ https://github.com/lathiat/avahi/blob/master/avahi-daemon/avahi-service.dtd + +* https://github.com/lathiat/nss-mdns diff --git a/defaults/main.yml b/defaults/main.yml index e786467..0fd948a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,5 +1,5 @@ --- -avahi_services: +avahi_daemon__services: - service: 'SSH' port: 22 protocol: 'any' diff --git a/tasks/avahi_services.yml b/tasks/avahi_services.yml index f0cca31..5f76ac1 100644 --- a/tasks/avahi_services.yml +++ b/tasks/avahi_services.yml @@ -8,4 +8,4 @@ mode: 'u=rw,g=r,o=r' notify: - systemctl restart avahi-daemon.service - with_items: "{{ avahi_services }}" + with_items: "{{ avahi_daemon__services }}" diff --git a/tasks/install.yml b/tasks/install.yml index 189369a..995fabb 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -10,5 +10,5 @@ - name: install avahi packages become: true ansible.builtin.package: - name: "{{ avahi_packages }}" + name: "{{ avahi_daemon__packages }}" state: present diff --git a/vars/Archlinux.yml b/vars/Archlinux.yml index 4248975..77a69fd 100644 --- a/vars/Archlinux.yml +++ b/vars/Archlinux.yml @@ -1,3 +1,3 @@ --- -avahi_packages: +avahi_daemon__packages: - avahi diff --git a/vars/Debian.yml b/vars/Debian.yml index feb47ee..eded0ff 100644 --- a/vars/Debian.yml +++ b/vars/Debian.yml @@ -1,5 +1,7 @@ --- -avahi_packages: +avahi_daemon__packages: - 'avahi-daemon' - - 'avahi-utils' - 'avahi-discover' + - 'avahi-utils' + - 'libnss-mdns' +# - 'mdns-scan' diff --git a/vars/main.yml b/vars/main.yml index fb20c72..ca874fd 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,4 +1,4 @@ --- # versionscheck -playbook_version_number: 7 +playbook_version_number: 8 playbook_version_path: 'do1jlr.avahi_daemon.version' diff --git a/vars/os_fallback.yml b/vars/os_fallback.yml index 4248975..77a69fd 100644 --- a/vars/os_fallback.yml +++ b/vars/os_fallback.yml @@ -1,3 +1,3 @@ --- -avahi_packages: +avahi_daemon__packages: - avahi