Skip to content

Ansible connection plugin using ssh + lxc-attach

Notifications You must be signed in to change notification settings

abshoff/ansible-lxc-ssh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 

Repository files navigation

ansible-lxc-ssh

This Ansible connection plugin connects to LXC containers running on a host machine by using ssh to connect to the host machine and sudo lxc-attach to enter the container.

To load the plugin, place it into the connection plugin directory or reference the plugin path in ansible.cfg.

[defaults]
connection_plugins = /path/to/connection_plugins/lxc_ssh

Then, modify your hosts file to use the lxc_ssh transport:

ansible_connection: lxc_ssh
ansible_host: lxc_host
lxc_container: lxc_container

Containers can be created with the Ansible lxc_container module.

Fork

This version has been forked from Andreas Scherbaum which had been forked from the original author Pierre Chifflier. Various other authors have also contributed to the project.

The main difference of this fork is the focus on compatability with the lxc-* tools in a sudo setting and different Ansible releases. It will be synced with the other repositories from time to time.

About

Ansible connection plugin using ssh + lxc-attach

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%