homelab/roles/base/templates/ddclient.conf.j2

23 lines
557 B
Django/Jinja

# Configuration file for ddclient managed by Ansible
#
# /etc/ddclient.conf
{% for domain in ddclient %}
{% if domain.verbose is sameas true or domain.verbose is not defined %}
verbose=yes
{% else %}
verbose=no
{% endif %}
use=web, web={{ domain.web | default('dynamicdns.park-your-domain.com/getip')}}
protocol={{ domain.protocol | default('namecheap')}}
{% if domain.server is defined %}
server={{ domain.server }}
{% endif %}
{% if domain.name is defined %}
login={{ domain.name }}
{% endif %}
password={{ domain.pass }}
{{ domain.host }}
{% endfor %}