So yeah installing community.general did not include incus. Is there a way to install the incus by itself. I only use ansible to create new containers. (which I would like to do)
I think you have a misconfigurationed system. I just spun up a new Debian Bookworm instance and installed Ansible with apt-get.
Then I ran the install command I posted earlier.
I now have the Incus connector installed at ~/.ansible/collections/ansible_collections/community/general/plugins/connection/incus.py
It looks like you are installing collections to /root/collections. Maybe you can find it under a similar path as mine. I suspect that your Ansilbe install is not picking up the correct path.
Any chance you can run Ansible from a Debian container like I did? What system are you trying to run Ansible from?
Figured it out.
The old inventory file had the “ansible_connection=lxd” for containers and I tried to just replace lxd with “ansible_connection=incus”. The snippet below works.