A systemd-nspawn connection driver

I’ve submitted a patch that adds a systemd-nspawn connection driver to Ansible. It started out as a clone of the existing “chroot” driver, but it’s a lot easier to use (since nspawn takes care of setting up things like /dev, /proc, and /sys inside the “chroot” environment).

The pull request is here:

https://github.com/ansible/ansible/pull/14334

And I’ve put a short blog post together with more examples here:

http://blog.oddbit.com/2016/02/08/a-systemd-nspawn-connection-driver-for-a/

I’ve actually been using this locally to drive the creation of Raspberry Pi disk images, since with this driver in place it’s trivial to target mounted ARM-filesystems from my x86_64 host.