Skip to content

v2.0.2 - Fix Ansible loops (jail-host redirect lost on option reload)

Latest

Choose a tag to compare

@chofstede chofstede released this 04 Aug 19:19
Immutable release. Only release title and notes can be modified.
v2.0.2
a882a1f

Re-release of 2.0.1 with a correctly signed commit. No functional change — if you already run 2.0.1 (from PyPI or Codeberg), there is nothing to gain by upgrading. The v2.0.1 tag could not be corrected in place because GitHub's immutable releases permanently reserve a tag name once used.

Fixed (originally released as 2.0.1)

  • The SSH redirect to the jail host is no longer lost when Ansible reloads connection options. The redirect was installed once in _connect(), but ansible-core rebuilds a connection plugin's option dict before every task and before every loop item, which reset host back to the inventory hostname (the jail name). Because _connect() short-circuits on an established connection, nothing restored it, and every command after the first loop item was sent to the jail name instead of the jail host. The redirect is now re-applied in set_options(), so it survives each reload. Reported in #7 by @geekobiloba.

Full changelog: CHANGELOG.md