LXC containers management on remote host

Hello developers,

I'm sad I can't use my favorites roles & playbooks to configure my LXC containers on a remote host as the lxc_container module shows only "container_command" to use shell commands.

Could we talk about a PR (https://github.com/ansible/ansible/pull/9427) that intended to add a connection backend to manage remote LXC containers but has been abandoned by its author. There were some hesitations at this time about the merge of a feature that basically adds connection chaining/hopping to Ansible.

Can we discuss the principle of such a feature before trying to implement it against Ansible v2.x?

A LXC connection plugin was added about a year ago:

https://github.com/ansible/ansible/commit/88482234e67b0966757413fc38130bdc4e3c888d

As I understand this plugin, it enables access to a container running on the host executing Ansible. I can't figure out a way to use it as it is for now to do the same for containers on a different (remote) host. The PR I pointed earlier looked like a way to do it.

Talking on the IRC channel teached me that connection chaining may need a complete redesign of connection plugins and I understand this can increase the maintenance costs. This is why I prefer do ask first. It may not be the best way to adress this use case (configuration of a container system on a remote host with Ansible playbooks) but it looks like there is no other straightforward way.