setup bind config files in ns.xai-corp.net role
This commit is contained in:
23
roles/ns.xai-corp.net/tasks/main.yml
Normal file
23
roles/ns.xai-corp.net/tasks/main.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
# tasks/main.yml
|
||||
# define tasks here
|
||||
|
||||
- name: set correct permissions on dirs
|
||||
file: state=directory path=/var/bind/{{ item }} owner=root group=named mode=0770
|
||||
with_items:
|
||||
- pri
|
||||
- sec
|
||||
- dyn
|
||||
notify:
|
||||
- restart bind
|
||||
|
||||
- name: copy zone files to /var/bind/pri
|
||||
template: src={{ item }}.j2 dest=/var/bind/pri/{{ item }} owner=root group=named mode=0750
|
||||
with_items: "{{ bind.zonefiles }}"
|
||||
notify:
|
||||
- restart bind
|
||||
|
||||
- name: copy named.conf to /etc/bind/
|
||||
template: src=named.conf.j2 dest=/etc/bind/named.conf owner=root group=named mode=0640
|
||||
notify:
|
||||
- restart bind
|
||||
Reference in New Issue
Block a user