Idempotency fixes to roles/pre-upgrade (#3497)

pull/3666/head
Giacomo Longo 2018-11-08 01:31:29 +01:00 committed by k8s-ci-robot
parent a6932b6b81
commit 9f7c2b08a5
1 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@
register: kubectl_node_ready register: kubectl_node_ready
delegate_to: "{{ groups['kube-master'][0] }}" delegate_to: "{{ groups['kube-master'][0] }}"
failed_when: false failed_when: false
changed_when: false
# SchedulingDisabled: unschedulable = true # SchedulingDisabled: unschedulable = true
# else unschedulable key doesn't exist # else unschedulable key doesn't exist
@ -18,6 +19,7 @@
register: kubectl_node_schedulable register: kubectl_node_schedulable
delegate_to: "{{ groups['kube-master'][0] }}" delegate_to: "{{ groups['kube-master'][0] }}"
failed_when: false failed_when: false
changed_when: false
- set_fact: - set_fact:
needs_cordoning: >- needs_cordoning: >-
@ -37,6 +39,7 @@
register: kubectl_version register: kubectl_version
delegate_to: "{{ groups['kube-master'][0] }}" delegate_to: "{{ groups['kube-master'][0] }}"
run_once: yes run_once: yes
changed_when: false
when: when:
- drain_nodes - drain_nodes
- needs_cordoning - needs_cordoning