PyratLabs / ansible-role-k3s

Ansible role for installing k3s as either a standalone server or HA cluster.
BSD 3-Clause "New" or "Revised" License
627 stars 135 forks source link

Templating error on fresh install in tasks/teardown/drain-and-remove-nodes.yml:3 #31

Closed alexander-rabenstein closed 4 years ago

alexander-rabenstein commented 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

alexander-rabenstein commented 4 years ago

Did not notice i am using an old ansible 2.5 version in my wsl. Upgraded to 2.9, runs well now

xanmanning commented 4 years ago

Fair shout, thanks @alexander-rabenstein for providing an update.