update ns.xai-corp.net and managed_setup
This commit is contained in:
@@ -21,11 +21,19 @@
|
||||
- restart bind
|
||||
|
||||
- name: copy zone files to /etc/bind/
|
||||
template: src={{ item }}.j2 dest=/etc/bind/db.{{ item }} owner={{ bind.user }} group={{ bind.group }} mode=0644
|
||||
template:
|
||||
src: "{{ item }}.j2"
|
||||
dest: /etc/bind/db.{{ item }}
|
||||
owner: "{{ bind.user }}"
|
||||
group: "{{ bind.group }}"
|
||||
mode: 0644
|
||||
with_items: "{{ bind.zonefiles }}"
|
||||
notify:
|
||||
- restart bind
|
||||
|
||||
- name: test zone files
|
||||
command: named-checkzone xai-corp.net /etc/bind/db.xai-corp.net.internal
|
||||
|
||||
- name: copy named.confs to /etc/bind/
|
||||
template: src={{ item }}.j2 dest=/etc/bind/{{ item }} owner={{ bind.user }} group={{ bind.group }} mode=0640
|
||||
with_items:
|
||||
|
||||
Reference in New Issue
Block a user