I contributed an Ansible connection plugin a few weeks ago and have been using it for my own infrastructure. I actually recently linked to the Ansible connection plugin, Terraform provider and Packer plugin in the recent Incus 0.5 announcement:
The inventory plugin for Ansible is a bit weird. It’s actually quite outdated even by LXD standard.
If it got updated to work using the modern LXD API, then it would also work against Incus.
Though I also don’t really like how the inventory plugin interacts with LXD/Incus as it doesn’t really understand remotes, authentication or projects. I think if I were to work on that particular plugin, I’d base it on the CLI tool, following the example of the connection plugin.
There’s also another plugin to handle creation of instances themselves, I think that one is in the worst shape of the three and I’m not too sure how much effort should be put into it. Lately I’ve been in the camp of preferring Terraform/OpenTofu to create the instances and other resources, then use Ansible to deploy everything inside of those instances, trying to keep the two concepts deliberately separate…