24 lines
596 B
YAML
24 lines
596 B
YAML
---
|
|
# 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
|