Earlier this year, I developed "ansible_jailexec", a modern Ansible connection plugin that can manage FreeBSD Jails via jexec via the host (incl. transparent file copy into the jails filesystem). All released under a BSD license.
That way, you can automate FreeBSD Jails via Ansible, even when they have no ssh or network connectivity.
On Codeberg: https://codeberg.org/Larvitz/ansible_jailexec
On GitHub: https://github.com/chofstede/ansible_jailexec/
The connection-plugin comes as a single python file (jailexec.py) and comes with Unit tests and internal safety checks.
Maybe someone finds it useful.
Happy automating
馃檪
#freebsd #ansible #automation #bsd #automation #opensource #foss #jails