From 4b7d59224d62e69fc1ae8c34be299c3ef4da9337 Mon Sep 17 00:00:00 2001 From: Matthew Mosesohn Date: Mon, 8 Oct 2018 11:22:57 +0300 Subject: [PATCH] Fix tag based deploy of apps by skipping kubeadm dns tasks (#3462) --- roles/kubernetes-apps/ansible/tasks/cleanup_dns.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/kubernetes-apps/ansible/tasks/cleanup_dns.yml b/roles/kubernetes-apps/ansible/tasks/cleanup_dns.yml index e77f1e799..a369e842e 100644 --- a/roles/kubernetes-apps/ansible/tasks/cleanup_dns.yml +++ b/roles/kubernetes-apps/ansible/tasks/cleanup_dns.yml @@ -22,6 +22,7 @@ state: absent when: - kubeadm_enabled|default(false) + - kubeadm_init is defined - kubeadm_init.changed|default(false) - inventory_hostname == groups['kube-master'][0] @@ -50,5 +51,6 @@ - 'svc' when: - kubeadm_enabled|default(false) + - kubeadm_init is defined - kubeadm_init.changed|default(false) - inventory_hostname == groups['kube-master'][0]