x70b1 / ansible-zonefile

Maintain the existence and SOA settings for a zone file managed by Knot DNS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ansible-zonefile

Actions Contributors License

Maintain the existence and SOA settings for a zone file managed by Knot DNS.

This works fine together with StackExchange/dnscontrol.

Setup

Clone this repo to the Ansible Library in your current project:

git clone https://github.com/x70b1/ansible-zonefile.git library/

How to use

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: mail@example.org
    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.   # we.are.online@example.org
    ...

About

Maintain the existence and SOA settings for a zone file managed by Knot DNS.

License:The Unlicense


Languages

Language:Shell 100.0%