From 71cdc425fd1f919fb38a87562c9e03e35a14a812 Mon Sep 17 00:00:00 2001 From: "Sergey Bubnov (omg)" Date: Sun, 30 Jun 2019 13:21:08 +0400 Subject: [PATCH] put rndc.key to the right place --- roles/bind-role/tasks/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 }}"