aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks
diff options
context:
space:
mode:
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: