diff --git a/roles/bind-role/tasks/main.yml b/roles/bind-role/tasks/main.yml index 2cc1037..201fe5a 100644 --- a/roles/bind-role/tasks/main.yml +++ b/roles/bind-role/tasks/main.yml @@ -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 }}"