diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2019-04-02 20:23:52 +0200 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2019-04-03 10:31:02 +0200 |
commit | 806bfb26907e9bb3d41f0c9225800a7f8c77683a (patch) | |
tree | b2cc4ab0b6ffff20f37c8b8bdc5d76a6746c5dd4 /roles/space_server/tasks | |
parent | 14d5cbd332a15a8438a458e8c4817d4458c2145b (diff) | |
download | labitat-ansible-806bfb26907e9bb3d41f0c9225800a7f8c77683a.tar.gz labitat-ansible-806bfb26907e9bb3d41f0c9225800a7f8c77683a.tar.xz labitat-ansible-806bfb26907e9bb3d41f0c9225800a7f8c77683a.zip |
space_server: named: support dynamic updates
..of the dhcp zone and reverse dns for 10.42.0.0/16
This way the dhcp daemon can add entries when it
handles out leases.
Diffstat (limited to 'roles/space_server/tasks')
-rw-r--r-- | roles/space_server/tasks/named.yml | 35 |
1 files changed, 27 insertions, 8 deletions
diff --git a/roles/space_server/tasks/named.yml b/roles/space_server/tasks/named.yml index 243bf3e..519b5d4 100644 --- a/roles/space_server/tasks/named.yml +++ b/roles/space_server/tasks/named.yml @@ -1,21 +1,40 @@ --- -- name: Create local zones +- name: Create s zone template: - dest: '/etc/named/{{ item }}' - src: '{{ item }}.j2' + dest: '/etc/named/s.zone' + src: s.zone.j2 owner: root group: named mode: 0644 - with_items: - - 's.zone' - - 'ipv4.rev.zone' + notify: + - restart named + +- name: Create dhcp zone + template: + dest: '/var/named/dynamic/dhcp.zone' + src: dhcp.zone.j2 + owner: named + group: named + mode: 0644 + force: no + notify: + - restart named + +- name: Create ipv4 reverse dns zone + template: + dest: '/var/named/dynamic/ipv4.rev.zone' + src: ipv4.rev.zone.j2 + owner: named + group: named + mode: 0644 + force: no notify: - restart named - name: Configure named - copy: + template: dest: '/etc/named.conf' - src: named.conf + src: named.conf.j2 owner: root group: named mode: 0640 |