Default variables: configuration
Some of the debops.pdns default variables have more extensive configuration
than simple strings or lists, here you can find documentation and examples for
them.
pdns__*_configuration
The pdns__configuration, pdns__group_configuration and
pdns__host_configuration variables allow you to override
/etc/powerdns/pdns.conf settings on a global, group or host basis. The
variables are lists of dicts that get merged using the principles of
Universal Configuration.
nameRequired. Name of the setting you want to change.
commentOptional. Comment added in the configuration file.
valueRequired. The value to configure as a string or YAML text block.
stateOptional. The state of the setting in
/etc/powerdns/pdns.conf, either "present" or "absent". Defaults to "present".
Example:
pdns__configuration:
- name: 'also-notify'
comment: |-
Our secondary DNS provider uses unicast hosts to collect zone transfer
data, and then distributes it internally to all their anycast servers.
value: '2001:db8:a::1, 2001:db8:b::1, 2001:db8:c::1'
state: '{{ "present"
if ansible_local.machine.deployment
| d("production") == "production"
else "absent" }}'