I wrote earlier about systemd-nspawn, and how it can take much
of the fiddly work out of setting up functional chroot
environments.
I’m a regular Ansible user, and I wanted to be able to apply some
of those techniques to my playbooks.
Ansible already has a chroot
module, of course, but for some
situations – such as targeting an emulated chroot
environment –
that just means a lot of extra work. Using systemd-nspawn
makes
this trivial.