ansible-core deprecates injecting top-level facts as variables (INJECT_FACTS_AS_VARS) and will stop doing so in 2.24. Convert all remaining bare fact references (ansible_default_ipv4/ipv6, os_family, distribution_release, date_time, ...) to the ansible_facts[] form. Also fixes a typo (ansbile_date_time) in the postfix backup task.
6 lines
382 B
Django/Jinja
Executable File
6 lines
382 B
Django/Jinja
Executable File
api = Yes
|
|
api-key ={{ pdns_api_key | default(lookup('password', '/etc/powerdns/pdns.d/.api-key length=20')) }}
|
|
webserver = Yes
|
|
#webserver-address = {% if wg_local_ip is defined %}, {{ wg_local_ip | ansible.utils.ipaddr('address') }}{% else %}{{ ansible_facts['default_ipv4']['address'] }}{% endif %}
|
|
webserver-address = 0.0.0.0
|
|
webserver-allow-from = 127.0.0.1, [::1], 192.168.1.238 |