WIP3
This commit is contained in:
24
roles/bertvv.bind/tasks/slave.yml
Normal file
24
roles/bertvv.bind/tasks/slave.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
# roles/bind/tasks/master.yml
|
||||
# Set up a BIND slave server
|
||||
---
|
||||
|
||||
- name: Slave | Main BIND config file (slave)
|
||||
template:
|
||||
src: slave_etc_named.conf.j2
|
||||
dest: "{{ bind_config }}"
|
||||
owner: "{{ bind_owner }}"
|
||||
group: "{{ bind_group }}"
|
||||
mode: '0640'
|
||||
setype: named_conf_t
|
||||
validate: 'named-checkconf %s'
|
||||
notify: reload bind
|
||||
tags: bind
|
||||
|
||||
- name: Slave | ensure directory for cached slaves zones
|
||||
file:
|
||||
path: "{{ bind_dir }}/slaves"
|
||||
state: directory
|
||||
owner: "{{ bind_owner }}"
|
||||
group: "{{ bind_group }}"
|
||||
mode: '0770'
|
||||
setype: named_cache_t
|
||||
Reference in New Issue
Block a user