How can I use Ansible to execute tasks on lxc containers on a remote server?
We use Ansible to deploy our code on several servers (physical and virtual machines).
Until now, every instance had a public ip address and a running ssh server, so everything worked like a charm. But recently, we had to deploy on two lxc containers on a remote server.
The two containers are natted and don't run a ssh server (and we'd like to keep it that way). I can only connect to them using ssh to reach the physical host then lxc-attach'ing to them.
The only way I found is a custom plugin that was never updated for the latest Ansible 2.0 version. I also reached to the mailing list with no result so far.
Has anybody ever succeeded in using Ansible in such a configuration?