seowon
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
roles/remove-node/pre-remove/tasks/main.yml
|
@ -5,7 +5,7 @@ |
|
|
with_items: |
|
|
with_items: |
|
|
- "{{ node.split(',') | default(groups['kube-node']) }}" |
|
|
- "{{ node.split(',') | default(groups['kube-node']) }}" |
|
|
register: result |
|
|
register: result |
|
|
failed_when: result.rc == 0 and not allow_ungraceful_removal |
|
|
|
|
|
|
|
|
failed_when: result.rc != 0 and not allow_ungraceful_removal |
|
|
delegate_to: "{{ groups['kube-master']|first }}" |
|
|
delegate_to: "{{ groups['kube-master']|first }}" |
|
|
run_once: true |
|
|
run_once: true |
|
|
ignore_errors: yes |
|
|
ignore_errors: yes |
|
@ -21,7 +21,7 @@ |
|
|
with_items: |
|
|
with_items: |
|
|
- "{{ node.split(',') | default(groups['kube-node']) }}" |
|
|
- "{{ node.split(',') | default(groups['kube-node']) }}" |
|
|
register: result |
|
|
register: result |
|
|
failed_when: result.rc == 0 and not allow_ungraceful_removal |
|
|
|
|
|
|
|
|
failed_when: result.rc != 0 and not allow_ungraceful_removal |
|
|
delegate_to: "{{ groups['kube-master']|first }}" |
|
|
delegate_to: "{{ groups['kube-master']|first }}" |
|
|
run_once: true |
|
|
run_once: true |
|
|
ignore_errors: yes |
|
|
ignore_errors: yes |