mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-11-26 12:27:28 +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
@ -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 New Issue
Block a user