From 14d5cbd332a15a8438a458e8c4817d4458c2145b Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Tue, 2 Apr 2019 17:53:01 +0200 Subject: space_server: named: create reverse ipv4 zone --- roles/space_server/tasks/named.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'roles/space_server/tasks') diff --git a/roles/space_server/tasks/named.yml b/roles/space_server/tasks/named.yml index 143e8f0..243bf3e 100644 --- a/roles/space_server/tasks/named.yml +++ b/roles/space_server/tasks/named.yml @@ -1,4 +1,17 @@ --- +- name: Create local zones + template: + dest: '/etc/named/{{ item }}' + src: '{{ item }}.j2' + owner: root + group: named + mode: 0644 + with_items: + - 's.zone' + - 'ipv4.rev.zone' + notify: + - restart named + - name: Configure named copy: dest: '/etc/named.conf' @@ -8,15 +21,6 @@ mode: 0640 notify: - restart named -- name: Create s zone - template: - dest: '/etc/named/s.zone' - src: s.zone.j2 - owner: root - group: named - mode: 0644 - notify: - - restart named - name: Create service drop-in directory file: -- cgit v1.2.1