I'm using Ansible to connect to containers and VM's via SSH, but I'm wondering if there is a better way to do it using PVE as a proxy, given there are tools such as
Meanwhile I've found Ansible lxc_container module, but I'm having issues installing the needed package python3-lxc, as I've described in this forum thread.
Is there a better way to use PVE as proxy to any container for task automation?
I don't think pct exec and the related commands are ideal, as they will not handle errors via the Ansible API, but by now they seem to be the best option (if I can get them to work somehow with Ansible)
pct exec, pct enter, and pct console that allow Proxmox to send commands directly to the containers. This would allow to connect to containers which Ansible cannot reach via the network.Meanwhile I've found Ansible lxc_container module, but I'm having issues installing the needed package python3-lxc, as I've described in this forum thread.
Is there a better way to use PVE as proxy to any container for task automation?
I don't think pct exec and the related commands are ideal, as they will not handle errors via the Ansible API, but by now they seem to be the best option (if I can get them to work somehow with Ansible)