1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/lib/ansible/cli
Lars Kellogg-Stedman 3597ca082b add systemd-nspawn connection driver
This commit adds a connection driver built on top of systemd-nspawn.
This is similar to the existing `chroot` driver, except that nspawn
offers a variety of additional services. For example, it takes care of
automatically mounting `/proc` and `/sys` inside the chroot environment,
which will make a variety of tools work correctly that would otherwise
fail.

You can take advantage of other system-nspawn features to perform more
complicated tasks.  For example, on my x86_64 system I have a Raspberry
Pi disk image mounted on `/rpi`.  I can't use `chroot` with this because
the binaries contained in the image are for the wrong architecture.
However, I can use the systemd-nspawn `--bind` option to automatically
insert the appropriate qemu-arm binary into the container using an
inventory file like this:

    pi ansible_host=/rpi ansible_nspawn_extra_args='--bind /usr/bin/qemu-arm --bind /lib64'

See http://www.freedesktop.org/software/systemd/man/systemd-nspawn.html
for more information about systemd-nspawn itself.
2017-02-17 12:39:48 -05:00
..
__init__.py add systemd-nspawn connection driver 2017-02-17 12:39:48 -05:00
adhoc.py PEP 8 indent cleanup. (#20800) 2017-01-29 07:28:53 +00:00
console.py PEP 8 indent cleanup. (#20800) 2017-01-29 07:28:53 +00:00
doc.py ansible doc does not need plugin deprecation error 2017-01-12 13:09:15 -05:00
galaxy.py fix non-zero exit code on missing role file (#19002) 2017-02-14 17:57:06 +01:00
playbook.py Correctly set loader path when using list tags/tasks 2016-12-21 21:01:02 -06:00
pull.py Refactor parsing of CLI args so that we can modify them in the base class 2016-10-06 10:46:58 -04:00
vault.py Vault encrypt string cli (#21024) 2017-02-17 10:12:14 -05:00