mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-12-12 14:00:18 +01:00
Merge pull request #112 from anjia0532/fix_kubectl_get_nodes_result_stdout_error
fixed kubectl_get_nodes_result.stdout error
This commit is contained in:
commit
d2ca503432
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
||||||
delegate_to: "{{ k3s_control_delegate }}"
|
delegate_to: "{{ k3s_control_delegate }}"
|
||||||
run_once: true
|
run_once: true
|
||||||
when:
|
when:
|
||||||
|
- kubectl_get_nodes_result.stdout is defined
|
||||||
- item in kubectl_get_nodes_result.stdout
|
- item in kubectl_get_nodes_result.stdout
|
||||||
- hostvars[item].k3s_state is defined
|
- hostvars[item].k3s_state is defined
|
||||||
- hostvars[item].k3s_state == 'uninstalled'
|
- hostvars[item].k3s_state == 'uninstalled'
|
||||||
|
@ -41,6 +42,7 @@
|
||||||
delegate_to: "{{ k3s_control_delegate }}"
|
delegate_to: "{{ k3s_control_delegate }}"
|
||||||
run_once: true
|
run_once: true
|
||||||
when:
|
when:
|
||||||
|
- kubectl_get_nodes_result.stdout is defined
|
||||||
- item in kubectl_get_nodes_result.stdout
|
- item in kubectl_get_nodes_result.stdout
|
||||||
- hostvars[item].k3s_state is defined
|
- hostvars[item].k3s_state is defined
|
||||||
- hostvars[item].k3s_state == 'uninstalled'
|
- hostvars[item].k3s_state == 'uninstalled'
|
||||||
|
|
Loading…
Reference in a new issue