Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.43 KB

README.md

File metadata and controls

49 lines (35 loc) · 1.43 KB

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: [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]
    ...