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:
Xan Manning 2021-04-30 17:34:25 +01:00 committed by GitHub
commit d2ca503432
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,7 @@
delegate_to: "{{ k3s_control_delegate }}"
run_once: true
when:
- kubectl_get_nodes_result.stdout is defined
- item in kubectl_get_nodes_result.stdout
- hostvars[item].k3s_state is defined
- hostvars[item].k3s_state == 'uninstalled'
@ -41,6 +42,7 @@
delegate_to: "{{ k3s_control_delegate }}"
run_once: true
when:
- kubectl_get_nodes_result.stdout is defined
- item in kubectl_get_nodes_result.stdout
- hostvars[item].k3s_state is defined
- hostvars[item].k3s_state == 'uninstalled'