Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#2922 from riverzhang/remove-node
Browse files Browse the repository at this point in the history
Add run_once to remove-node
  • Loading branch information
riverzhang authored Jun 23, 2018
2 parents 6c2f169 + 94aa062 commit f624ba4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion roles/remove-node/post-remove/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion roles/remove-node/pre-remove/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 comments on commit f624ba4

Please sign in to comment.