From 94507c135bac84bdcb58c3e90a0538278ccc1e76 Mon Sep 17 00:00:00 2001 From: Youssef El Houti Date: Sat, 10 Oct 2020 19:52:06 +0200 Subject: [PATCH] fix: add tags for set facts nodelocaldns --- 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 3e379c9b17d..378dbc92f2e 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: