Idempotency fixes to roles/pre-upgrade (#3497)
parent
a6932b6b81
commit
9f7c2b08a5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue