Maintain the existence and SOA settings for a zone file managed by Knot DNS.
This works fine together with StackExchange/dnscontrol.
Clone this repo to the Ansible Library in your current project:
git clone https://github.com/x70b1/ansible-zonefile.git library/
Background knowledge of the structure of an SOA record is highly recommended.
The module supports the following arguments:
- name: "Zonefile"
zonefile:
name: example.org
ttl: 14400
mname: ns1.example.org
rname: [email protected]
refresh: 3600
retry: 600
expire: 1209600
minimum: 600
You can use a preformatted mname
and rname
but you have to use escaped backslashes:
- name: "Zonefile"
zonefile:
...
mname: ns1.example.org.
rname: we\\.are\\.online.example.org. # [email protected]
...