k3s-io / k3s-ansible

Apache License 2.0
1.89k stars 780 forks source link

Airgap no file was found when using first_found #325

Closed Zombiepancake23 closed 1 month ago

Zombiepancake23 commented 2 months ago

Hi, I'm having this problem where when I run the playbook/site to do the setup it does all the pre req then gets past some of the airgap tasks and then once it gets to distribute it gives me a fatal error and said that there was no files found when using first_found and can be seen in the image bellow (sorry in advanced for the poor quality). I'm not sure what to do as i have followed the readme and have no idea where to start. any assistance would be much apreciated. image

jtcleek commented 2 months ago

@Zombiepancake23 Check your Ansible version. Per the system requirements you need to be on ansible-core 2.15+. You can execute "ansible --version" to confirm.

Zombiepancake23 commented 2 months ago

I just checked and it was 2.15 but I have upgraded to 2.16 and am gonna run the playbook again and see if it gets the same issue or any other. Thankyou for the help so far though

Zombiepancake23 commented 2 months ago

@jtcleek after upgrading to 2.16 its work and hasn't reported a failed, however now there is another issue when it comes to there being no context for k3s-ansible when trying to do the kubectl config

jtcleek commented 2 months ago

@Zombiepancake23 What value is set for 'cluster_context' in ./roles/k3s_server/defaults/main.yml

Zombiepancake23 commented 2 months ago

@jtcleek it shows that it is set to k3s-ansible