put rndc.key to the right place

This commit is contained in:
Sergey Bubnov (omg) 2019-06-30 13:21:08 +04:00
parent 8559e1f3d3
commit 71cdc425fd

View File

@ -60,7 +60,7 @@
- name: put rndc.key
template:
src: rndc.key.j2
dest: /etc/rndc.key
dest: /var/lib/bind/etc/rndc.key
owner: root
group: named
mode: 0640
@ -81,6 +81,10 @@
- include_tasks: slave.yml
when: bind_zone_master_server_ip not in ansible_all_ipv4_addresses
- name: black magick
shell: update_chrooted all
changed_when: false
- name: Start BIND service
service:
name: "{{ bind_service }}"