mirror of
https://github.com/roles-ansible/ansible_role_avahi_daemon.git
synced 2024-08-16 15:09:48 +02:00
create transport option
This commit is contained in:
parent
2ccf720db2
commit
53da61f984
4 changed files with 5 additions and 2 deletions
|
@ -14,6 +14,7 @@ Here is a list with available parameters:
|
|||
- ``name``: optional name to announce the Service
|
||||
- ``protocol``: ``any``/``ipv6``/``ipv4``
|
||||
- ``txt_records``: an array of txt records
|
||||
- ``transport``: Transport Protokoll (``tcp``/``udp``)
|
||||
|
||||
|
||||
Example:
|
||||
|
@ -23,6 +24,7 @@ avahi_services:
|
|||
- service: 'SSH'
|
||||
port: 22
|
||||
protocol: 'any'
|
||||
transport: 'tcp'
|
||||
- service: 'NFS'
|
||||
name: 'Filesharing Host %h'
|
||||
port: 2049
|
||||
|
|
|
@ -3,6 +3,7 @@ avahi_services:
|
|||
- service: 'SSH'
|
||||
port: 22
|
||||
protocol: 'any'
|
||||
transport: 'tcp'
|
||||
# - service: 'NFS'
|
||||
# name: 'Filesharing Host %h'
|
||||
# port: 2049
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
{%- endif -%}
|
||||
</name>
|
||||
<service protocol="{{ item.protocol | default("any") }}">
|
||||
<type>_{{ item.service | lower }}._tcp</type>
|
||||
<type>_{{ item.service | lower }}._{{ item.transport | default("tcp") | lower }}</type>
|
||||
<port>{{ item.port | int }}</port>
|
||||
{% for record in item.txt_records | default([]) %}
|
||||
<txt-record>{{ record }}</txt-record>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
---
|
||||
# versionscheck
|
||||
playbook_version_number: 6
|
||||
playbook_version_number: 7
|
||||
playbook_version_path: 'do1jlr.avahi_daemon.version'
|
||||
|
|
Loading…
Reference in a new issue