aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2019-04-02 17:53:01 +0200
committerEmil Renner Berthing <esmil@labitat.dk>2019-04-02 18:07:25 +0200
commit14d5cbd332a15a8438a458e8c4817d4458c2145b (patch)
treec91b2692120bebd88273302ecb150284cde22874 /roles/space_server/tasks
parent0c19892158609d1eb64015f84e53eb5685c97441 (diff)
downloadlabitat-ansible-14d5cbd332a15a8438a458e8c4817d4458c2145b.tar.gz
labitat-ansible-14d5cbd332a15a8438a458e8c4817d4458c2145b.tar.xz
labitat-ansible-14d5cbd332a15a8438a458e8c4817d4458c2145b.zip
space_server: named: create reverse ipv4 zone
Diffstat (limited to 'roles/space_server/tasks')
-rw-r--r--roles/space_server/tasks/named.yml22
1 files changed, 13 insertions, 9 deletions
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: