mirror of
https://github.com/roles-ansible/ansible_role_avahi_daemon.git
synced 2024-08-16 15:09:48 +02:00
18 lines
593 B
Django/Jinja
18 lines
593 B
Django/Jinja
<?xml version="1.0" standalone='no'?>
|
|
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
|
|
<service-group>
|
|
<name replace-wildcards="yes">
|
|
{% if item.name is defined %}
|
|
{{ item.name }}
|
|
{% else %}
|
|
{{ item.service | upper }} server at %h
|
|
{% endif %}
|
|
</name>
|
|
<service protocol="{{ item.protocol | default("any") }}">
|
|
<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>
|
|
{% endfor %}
|
|
</service>
|
|
</service-group>
|