setup bind config files in ns.xai-corp.net role

This commit is contained in:
2015-09-20 15:41:18 -04:00
parent c639e5dc4b
commit c187c1005c
14 changed files with 380 additions and 1 deletions

View 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