Merge pull request #2922 from riverzhang/remove-node

Add run_once to remove-node
pull/2923/head
Rong Zhang 2018-06-23 15:09:16 +08:00 committed by GitHub
commit f624ba47fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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