1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_avahi_daemon.git synced 2024-07-06 22:38:57 +02:00

update vriable names

This commit is contained in:
L3D 2021-09-02 11:02:00 +02:00
parent 2bf6faadae
commit e396f733a7
Signed by: l3d
GPG key ID: CD08445BFF4313D1
8 changed files with 20 additions and 17 deletions

View file

@ -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

View file

@ -1,5 +1,5 @@
---
avahi_services:
avahi_daemon__services:
- service: 'SSH'
port: 22
protocol: 'any'

View file

@ -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 }}"

View file

@ -10,5 +10,5 @@
- name: install avahi packages
become: true
ansible.builtin.package:
name: "{{ avahi_packages }}"
name: "{{ avahi_daemon__packages }}"
state: present

View file

@ -1,3 +1,3 @@
---
avahi_packages:
avahi_daemon__packages:
- avahi

View file

@ -1,5 +1,7 @@
---
avahi_packages:
avahi_daemon__packages:
- 'avahi-daemon'
- 'avahi-utils'
- 'avahi-discover'
- 'avahi-utils'
- 'libnss-mdns'
# - 'mdns-scan'

View file

@ -1,4 +1,4 @@
---
# versionscheck
playbook_version_number: 7
playbook_version_number: 8
playbook_version_path: 'do1jlr.avahi_daemon.version'

View file

@ -1,3 +1,3 @@
---
avahi_packages:
avahi_daemon__packages:
- avahi