# ansible-jailexec 1.1.0 / 1.2.0 - Ansible connection plugin for FreeBSD jails

**URL:** <https://forum.ansible.com/t/ansible-jailexec-1-1-0-1-2-0-ansible-connection-plugin-for-freebsd-jails/45706>\
**Category:** Project Discussions\
**Tags:** ansible-core\
**Created:** [April 19, 2026, 8:58pm UTC](https://forum.ansible.com/t/ansible-jailexec-1-1-0-1-2-0-ansible-connection-plugin-for-freebsd-jails/45706 "2026-04-19T20:58:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chofstede](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/chofstede/32/10616_2.png) [@chofstede](https://forum.ansible.com/u/chofstede)\
**Post date:** [April 19, 2026, 8:58pm UTC](https://forum.ansible.com/t/ansible-jailexec-1-1-0-1-2-0-ansible-connection-plugin-for-freebsd-jails/45706/1 "2026-04-19T20:58:27Z")

</div>

Hi all,

Just shipped two releases of ansible-jailexec, a connection plugin that runs tasks inside FreeBSD jails via jexec on the jail host, so you don’t need (and usually don’t want) direct SSH into the jails themselves.

1.1.0 is a ground-up refactor. The plugin now subclasses ansible.plugins.connection.ssh.Connection and merges the live ssh plugin’s options into its own at import time. That means every SSH option like ansible\_ssh\_port, ansible\_ssh\_private\_key\_file, ansible\_ssh\_common\_args, ControlPersist, jump hosts, password\_mechanism, and anything newer ansible-core adds, works without the plugin needing to know about it. Roughly a quarter of the old code, stricter input validation (jail names + traversal checks), single-round-trip put\_file, lazy jail-root probe, full unit test suite with 100% coverage, Bandit in CI. Tested against ansible-core 2.14 through 2.20.

1.2.0 adds ansible\_jail\_root, an inventory-level override for the jail’s on-host filesystem path. The default probe (jls -j path) is fine for vanilla jails, but returns something unhelpful for nested or VNET setups. The override sidesteps that.

- Source / issues: [GitHub - chofstede/ansible\_jailexec: Ansible Connection Plugin for FreeBSD Jails via jexec · GitHub](https://github.com/chofstede/ansible_jailexec)
- License: BSD-2-Clause

Happy to hear bug reports, edge cases, or interest in bundling this into a collection.
