You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not using sshjail, but I'm using sshlxd which started as a fork and I think this problem applies to both.
Ansible 2.12.3 includes this pull request which overwrites self.host in a bunch of places. This means that ansible will try to ssh into myjail@address (and fail) instead of just connecting to address.
My fix for this was to add a self.set_option('host', self.host) in exec_command:
defexec_command(self, cmd, in_data=None, executable='/bin/sh', sudoable=True):
''' run a command in the container '''self.set_option('host', self.host)
cmd='%s exec %s -- %s'% (self.get_container_connector(), self.get_container_id(), cmd)
returnsuper(Connection, self).exec_command(cmd, in_data, True)
The text was updated successfully, but these errors were encountered:
freebsd-git
pushed a commit
to freebsd/freebsd-ports
that referenced
this issue
Mar 7, 2022
Changes in recent py-ansible-core 2.12.3 cause connection falures
in ansible-sshjail. Apply suggested fix from upstream issue report.
While here rename patch file.
Obtained from: austinhyde/ansible-sshjail#40
camachat
pushed a commit
to camachat/freebsd-ports
that referenced
this issue
Mar 9, 2022
Changes in recent py-ansible-core 2.12.3 cause connection falures
in ansible-sshjail. Apply suggested fix from upstream issue report.
While here rename patch file.
Obtained from: austinhyde/ansible-sshjail#40
wombelix
added a commit
to wombelix/fork_austinhyde_ansible-sshjail
that referenced
this issue
Mar 26, 2022
I'm not using
sshjail
, but I'm usingsshlxd
which started as a fork and I think this problem applies to both.Ansible 2.12.3 includes this pull request which overwrites
self.host
in a bunch of places. This means that ansible will try to ssh intomyjail@address
(and fail) instead of just connecting toaddress
.My fix for this was to add a
self.set_option('host', self.host)
inexec_command
:The text was updated successfully, but these errors were encountered: