From 9f7c2b08a57faca60c8f020eabc81981acc93e73 Mon Sep 17 00:00:00 2001 From: Giacomo Longo Date: Thu, 8 Nov 2018 01:31:29 +0100 Subject: [PATCH] Idempotency fixes to roles/pre-upgrade (#3497) --- roles/upgrade/pre-upgrade/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/upgrade/pre-upgrade/tasks/main.yml b/roles/upgrade/pre-upgrade/tasks/main.yml index a81e90806..f8ad23f72 100644 --- a/roles/upgrade/pre-upgrade/tasks/main.yml +++ b/roles/upgrade/pre-upgrade/tasks/main.yml @@ -8,6 +8,7 @@ register: kubectl_node_ready delegate_to: "{{ groups['kube-master'][0] }}" failed_when: false + changed_when: false # SchedulingDisabled: unschedulable = true # else unschedulable key doesn't exist @@ -18,6 +19,7 @@ register: kubectl_node_schedulable delegate_to: "{{ groups['kube-master'][0] }}" failed_when: false + changed_when: false - set_fact: needs_cordoning: >- @@ -37,6 +39,7 @@ register: kubectl_version delegate_to: "{{ groups['kube-master'][0] }}" run_once: yes + changed_when: false when: - drain_nodes - needs_cordoning