commit 007e89b151151965014fd54c8278cb99c4cb3612
parent 0a5babd692afa4e332357f90041542746a3be4ca
Author: Leah (ctucx) <leah@ctu.cx>
Date: Mon, 16 Nov 2020 20:20:33 +0100
parent 0a5babd692afa4e332357f90041542746a3be4ca
Author: Leah (ctucx) <leah@ctu.cx>
Date: Mon, 16 Nov 2020 20:20:33 +0100
bind: clear slave-state on deploy
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/roles/bind/tasks/main.yml b/roles/bind/tasks/main.yml @@ -22,6 +22,18 @@ recurse: yes when: bind.type == "master" +- name: clear zonedata to pull it again + file: + state: "{{ item }}" + path: /var/lib/named + owner: named + group: named + mode: 0755 + with_items: + - absent + - directory + when: bind.type == "slave" + - name: copy named.conf to destination host template: src: named.conf.j2