From ac17b9723bb4193be6cf15fad81036faf2d174a7 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 18 Nov 2024 21:53:46 +0000 Subject: [PATCH] Actually install Corefile --- ansible/roles/coredns_docker_proxy/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ansible/roles/coredns_docker_proxy/tasks/main.yml b/ansible/roles/coredns_docker_proxy/tasks/main.yml index 8945646..fb768ce 100644 --- a/ansible/roles/coredns_docker_proxy/tasks/main.yml +++ b/ansible/roles/coredns_docker_proxy/tasks/main.yml @@ -18,3 +18,11 @@ owner: "{{ docker_user.name }}" validate: docker-compose -f %s config notify: restart coredns + +- name: Install Corefile + template: + src: files/Corefile + dest: /opt/coredns/Corefile + mode: "{{ docker_compose_file_mask }}" + owner: "{{ docker_user.name }}" + notify: restart coredns