Add run_once to remove-node
This commit is contained in:
parent
1a25903583
commit
94aa062d51
2 changed files with 4 additions and 2 deletions
|
@ -4,5 +4,6 @@
|
||||||
command: kubectl delete node {{ item }}
|
command: kubectl delete node {{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ groups['kube-node'] }}"
|
- "{{ groups['kube-node'] }}"
|
||||||
delegate_to: "{{ groups['kube-master'][0] }}"
|
delegate_to: "{{ groups['kube-master']|first }}"
|
||||||
|
run_once: true
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
|
@ -11,5 +11,6 @@
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ groups['kube-node'] }}"
|
- "{{ groups['kube-node'] }}"
|
||||||
failed_when: false
|
failed_when: false
|
||||||
delegate_to: "{{ groups['kube-master'][0] }}"
|
delegate_to: "{{ groups['kube-master']|first }}"
|
||||||
|
run_once: true
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
Loading…
Reference in a new issue