Closed hechi closed 3 years ago
Hi @hechi
Have you tried k3s_become_for_all: true
?
Hey @xanmanning yes i did :) look above at the Steps to Reproduce
Owwww.... if i put it into the inventory for the host then it works š² is this intentional? I have it currently in the playbook as vars
all:
hosts:
sedna: # k8s-master
<truncated>
gonggong: # k8s-agent-0
<truncated>
quaoar: # k8s-agent-1
<truncated>
phobos: # storage-nfs
ansible_python_interpreter: /usr/bin/python3
ansible_user: <user>
ansible_host: <host ip>
gateway: <gateway ip>
k3s_become_for_all: true
k3s_agent:
node-label:
- "node-role.kubernetes.io/role=storage"
I'm tempted to ditch it. It's meant to only run tasks as root that need it, however it overrides become: true
when the role is run.
Ah good to know š
thx for helping and again for the amazing work š I love it š
My pleasure. Thanks āš
Sorry to reopen this, just wanted to add a note, that I could not get k3s_become_for_all: true
to work. Instead I added k3s_become: true
as a host var, and that worked.
Thanks for all your work on this @xanmanning
Summary
Hey @xanmanning first of all, many thanks for your hard work in this project. It helped me a lot and it's super easy to use. Idk why and how but i installed my homelab k3s with your documentation and everything worked well and as expected but now i wanted to add one more node and it fails at Ensure k3s binary is downloaded. It is not allowed to download the k3s into the /usr/local/bin folder. I already checked the permission and compared it to the other nodes but everything looks the same. It looks like the become_user is not propagated properly. I tried a simple download with native ansible in the same folder for the same file and it works. If i can provide more useful input let me know and thx a lot for checking š
Issue Type
Controller Environment and Configuration
Steps to Reproduce
Expected Result
Actual Result