1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_avahi_daemon.git synced 2024-08-16 15:09:48 +02:00
ansible_role_avahi_daemon/templates/avahi.service.j2

19 lines
593 B
Text
Raw Normal View History

2021-09-02 00:24:53 +02:00
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
2021-09-02 01:36:13 +02:00
<name replace-wildcards="yes">
2023-10-23 00:52:21 +02:00
{% if item.name is defined %}
{{ item.name }}
{% else %}
{{ item.service | upper }} server at %h
{% endif %}
2021-09-02 01:36:13 +02:00
</name>
<service protocol="{{ item.protocol | default("any") }}">
2021-09-02 02:10:18 +02:00
<type>_{{ item.service | lower }}._{{ item.transport | default("tcp") | lower }}</type>
2021-09-02 01:36:13 +02:00
<port>{{ item.port | int }}</port>
{% for record in item.txt_records | default([]) %}
<txt-record>{{ record }}</txt-record>
{% endfor %}
2021-09-02 00:24:53 +02:00
</service>
</service-group>