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.


Le 29/01/2017 à 16:26, Matt Martz a écrit :
A LXC connection plugin was added about a year ago:

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

On Sun, Jan 29, 2017 at 9:02 AM Thomas Szymanski <[email protected] <mailto:[email protected]>> wrote:

    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?


    --
    Thomas

    --
    You received this message because you are subscribed to the Google
    Groups "Ansible Development" group.
    To unsubscribe from this group and stop receiving emails from it,
    send an email to [email protected]
    <mailto:ansible-devel%[email protected]>.
    For more options, visit https://groups.google.com/d/optout.

--
Matt Martz
@sivel
sivel.net <http://sivel.net>

--
Thomas

--
You received this message because you are subscribed to the Google Groups "Ansible 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to