Ansible error using almost default values and metallb service LB #458
Unanswered
sharifm-informatica
asked this question in
Questions
Replies: 1 comment 1 reply
-
can you please attach your groupvars? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Expected Behavior
playbook would run and install
Current Behavior
FATAL: FAILED! => {"msg": "The conditional check 'kube_vip_lb_ip_range is not defined and (not cilium_bgp or cilium_iface is not defined)' failed. The error was: error while evaluating conditional (kube_vip_lb_ip_range is not defined and (not cilium_bgp or cilium_iface is not defined)): 'cilium_bgp' is undefined. 'cilium_bgp' is undefined\n\nThe error appears to be in '/playbook/roles/k3s_server/tasks/main.yml': line 29, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Deploy metallb manifest\n ^ here\n"}
Steps to Reproduce
cilium_bgp
is undefined as per old varsif
cilium_bgp
is defined the error does not occur. Possible breaking change for older configsPossible Solution
1- change line 32 in
/roles/k3s_server/tasks/main.yml
towhen: kube_vip_lb_ip_range is not defined and (not cilium_bgp is not defined or cilium_iface is not defined)
2- change line 15 in
/roles/k3s_server_post/tasks/main.yml
towhen: kube_vip_lb_ip_range is not defined and (not cilium_bgp is not defined or cilium_iface is not defined)
This may require another case for when it is defined and false.
Beta Was this translation helpful? Give feedback.
All reactions