dubzland / ansible-role-bind9

Ansible role to install and configure the Bind DNS server.
MIT License
0 stars 0 forks source link

Ansible Role: Bind9

Gitlab pipeline status (self-hosted) Ansible role Ansible role downloads Ansible Quality Score Liberapay patrons Liberapay receiving

Installs and configures the Bind9 DNS Server.

Requirements

Ansible version 2.0 or higher. jmespath python module.

Role Variables

Available variables are listed below, along with their default values (see defaults/main.yml for more info):

dubzland_bind9_zone_directory

dubzland_bind9_zone_directory: "/var/cache/bind"

Directory where zone files will be stored.

dubzland_bind9_forwarders

dubzland_bind9_forwarders:
  - 8.8.8.8
  - 4.4.4.4

List of DNS servers to relay queries to.

dubzland_bind9_keys

dubzland_bind9_keys: []

List of keys to add to Bind.

dubzland_bind9_acls

dubzland_bind9_acls: []

Access Control Lists to setup in Bind.

dubzland_bind9_zones

dubzland_bind9_zones: []

List of zones to be configured.

dubzland_bind9_views

dubzland_bind9_views: []

Logical views to create in Bind.

Dependencies

None

Example Playbook

- 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

License

MIT

Author