Skip to content
Snippets Groups Projects
Commit 94aa062d authored by rongzhang's avatar rongzhang
Browse files

Add run_once to remove-node

parent 1a259035
No related branches found
No related tags found
No related merge requests found
......@@ -4,5 +4,6 @@
command: kubectl delete node {{ item }}
with_items:
- "{{ groups['kube-node'] }}"
delegate_to: "{{ groups['kube-master'][0] }}"
delegate_to: "{{ groups['kube-master']|first }}"
run_once: true
ignore_errors: yes
......@@ -11,5 +11,6 @@
with_items:
- "{{ groups['kube-node'] }}"
failed_when: false
delegate_to: "{{ groups['kube-master'][0] }}"
delegate_to: "{{ groups['kube-master']|first }}"
run_once: true
ignore_errors: yes
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment