Register missing outputs in role "remove-node" (#6856)
parent
12ab8b7af3
commit
c25d624524
|
@ -4,6 +4,7 @@
|
|||
{{ bin_dir }}/kubectl cordon {{ hostvars[item]['kube_override_hostname']|default(item) }}
|
||||
with_items:
|
||||
- "{{ node.split(',') | default(groups['kube-node']) }}"
|
||||
register: result
|
||||
failed_when: result.rc == 0 and not allow_ungraceful_removal
|
||||
delegate_to: "{{ groups['kube-master']|first }}"
|
||||
run_once: true
|
||||
|
@ -19,6 +20,7 @@
|
|||
--delete-local-data {{ hostvars[item]['kube_override_hostname']|default(item) }}
|
||||
with_items:
|
||||
- "{{ node.split(',') | default(groups['kube-node']) }}"
|
||||
register: result
|
||||
failed_when: result.rc == 0 and not allow_ungraceful_removal
|
||||
delegate_to: "{{ groups['kube-master']|first }}"
|
||||
run_once: true
|
||||
|
|
Loading…
Reference in New Issue