mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-12-12 05:50:18 +01:00
Merge pull request #85 from Diaoul/patch-1
Fix check nodes ready without flannel
This commit is contained in:
commit
3716774cc9
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
|
||||
flannel-backend: 'host-gw'
|
||||
flannel-backend: 'none'
|
||||
disable-scheduler: true
|
||||
disable-cloud-controller: true
|
||||
disable-network-policy: true
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
retries: 30
|
||||
delay: 20
|
||||
when: k3s_control_node
|
||||
and (("disable" not in k3s_runtime_config)
|
||||
or ("disable" in k3s_runtime_config and "flannel" not in k3s_runtime_config.disable))
|
||||
and ("flannel-backend" not in k3s_runtime_config
|
||||
or k3s_runtime_config["flannel-backend"] != "none")
|
||||
and not ansible_check_mode
|
||||
become: "{{ k3s_become_for_kubectl | ternary(true, false, k3s_become_for_all) }}"
|
||||
|
|
Loading…
Reference in a new issue