Installs and configures the Bind9 DNS Server.
Ansible version 2.0 or higher. jmespath
python module.
Available variables are listed below, along with their default values (see
defaults/main.yml
for more info):
dubzland_bind9_zone_directory: "/var/cache/bind"
Directory where zone files will be stored.
dubzland_bind9_forwarders:
- 8.8.8.8
- 4.4.4.4
List of DNS servers to relay queries to.
dubzland_bind9_keys: []
List of keys to add to Bind.
dubzland_bind9_acls: []
Access Control Lists to setup in Bind.
dubzland_bind9_zones: []
List of zones to be configured.
dubzland_bind9_views: []
Logical views to create in Bind.
None
- hosts: dns-servers
become: yes
roles:
- role: dubzland.bind9
vars:
dubzland_bind9_zones:
- name: dubzland.net
type: master
hostmaster: admin.dubzland.net
nameservers:
- name: ns1.dubzland.net
ipv4_address: 10.0.0.1
- name: ns2.dubzland.net
ipv4_address: 10.0.0.2
mailservers:
- mail.dubzland.net
txt_records:
- "v=spf1 a mx ~all"
records:
- name: dubzland.net.
value: 10.0.0.1
type: A
MIT