Project reveal:
For the past couple of weeks, I was working on a modern Ansible connection plugin for FreeBSD Jails: jailexec.py
It utilizes the SSH connection to the host-system and jexec to execute Ansible automation within FreeBSD jails.
Makes it even possible to automate jails, that aren't reachable via SSH themselves (or even have no IP address).
Bonus features:
- Connection pooling and persistence for improved performance
- Efficient file transfer with proper permission handling
- Jail command execution via jexec with privilege escalation (doas/sudo)
- Comprehensive error handling and logging with multiple log-levels (-v -vv and -vvv)
After some polishing and testing, I will publish that under a BSD 2-Clause license on my Codeberg repositories and GitHub (Likely during the weekend)
#freebsd #bsd #ansible #automation #python #devops @vermaden