Closed sprijk closed 3 months ago
Fixed by doing: ansible-galaxy collection install ansible.posix
Now running into:
ERROR! couldn't resolve module/action 'community.general.ufw'. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in '/home/simon/Code/github/k3s-io/k3s-ansible/roles/prereq/tasks/main.yml': line 43, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: If ufw enabled, open api port
^ here
Probably another collection ;)
Probably because I only installed ansible-core...
pipx install ansible-core
After install sshpass
and adding the -kK
flag to input sudo password, all is fine!
Issuing
ansible-playbook playbook/site.yml -i inventory.yml
on a freshly installed ansible-core 2.16.4 using Python 3.10.12 on Ubuntu 22.04 gives:Could this be due to https://github.com/ansible/ansible/issues/68416#issuecomment-602867015 ?