Closed alexander-rabenstein closed 4 years ago
Hi,
I am trying to setup a fresh cluster with the latest version from galaxy, but I get the following error:
fatal: [kube_node1]: FAILED! => { "msg": "Unexpected templating type error occurred on ({{ k3s_become_for_kubectl | ternary(true, false, k3s_become_for_all) }}): ternary() takes exactly 3 arguments (4 given)" } fatal: [kube_node2]: FAILED! => { "msg": "Unexpected templating type error occurred on ({{ k3s_become_for_kubectl | ternary(true, false, k3s_become_for_all) }}): ternary() takes exactly 3 arguments (4 given)" } fatal: [kube_master]: FAILED! => { "msg": "Unexpected templating type error occurred on ({{ k3s_become_for_kubectl | ternary(true, false, k3s_become_for_all) }}): ternary() takes exactly 3 arguments (4 given)" }
My site.yml:
`- hosts: all roles:
I call ansible-playbook: ansible-playbook site.yml -i inventories/stackit-test/hosts -vvv -become
Did not notice i am using an old ansible 2.5 version in my wsl. Upgraded to 2.9, runs well now
Fair shout, thanks @alexander-rabenstein for providing an update.
Hi,
I am trying to setup a fresh cluster with the latest version from galaxy, but I get the following error:
fatal: [kube_node1]: FAILED! => { "msg": "Unexpected templating type error occurred on ({{ k3s_become_for_kubectl | ternary(true, false, k3s_become_for_all) }}): ternary() takes exactly 3 arguments (4 given)" } fatal: [kube_node2]: FAILED! => { "msg": "Unexpected templating type error occurred on ({{ k3s_become_for_kubectl | ternary(true, false, k3s_become_for_all) }}): ternary() takes exactly 3 arguments (4 given)" } fatal: [kube_master]: FAILED! => { "msg": "Unexpected templating type error occurred on ({{ k3s_become_for_kubectl | ternary(true, false, k3s_become_for_all) }}): ternary() takes exactly 3 arguments (4 given)" }
My site.yml:
`- hosts: all roles:
I call ansible-playbook: ansible-playbook site.yml -i inventories/stackit-test/hosts -vvv -become