From 8bec5beb4bbe6ffcd451d5d3c2a3c8c1a2e27b5d Mon Sep 17 00:00:00 2001 From: yelhouti Date: Tue, 13 Oct 2020 00:47:21 +0100 Subject: [PATCH] fix: add tags for set facts nodelocaldns (#6813) --- roles/kubernetes-apps/ansible/tasks/nodelocaldns.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/kubernetes-apps/ansible/tasks/nodelocaldns.yml b/roles/kubernetes-apps/ansible/tasks/nodelocaldns.yml index 3e379c9b1..378dbc92f 100644 --- a/roles/kubernetes-apps/ansible/tasks/nodelocaldns.yml +++ b/roles/kubernetes-apps/ansible/tasks/nodelocaldns.yml @@ -8,6 +8,12 @@ {{ manual_dns_server }} {%- endif -%} secondaryclusterIP: "{{ skydns_server_secondary }}" + when: + - enable_nodelocaldns + - inventory_hostname == groups['kube-master'] | first + tags: + - nodelocaldns + - coredns - name: Kubernetes Apps | Lay Down nodelocaldns Template template: