Am Donnerstag, 31. Januar 2019 16:35:10 UTC+1 schrieb Urs Lamprecht: > > I had a look at the source of the ssh connection plugin (but I am > certainly no Python guy) and mitogen but found no way to configure them in > order to have Ansible use the crude connection syntax I need. I even > thought about telling Ansible to use a different ssh binary but failed in > creating a concept of what this binary / bash script would need to do in > order to be compatible with Ansibles demands. > > (By the way: in a previous attempt I asked a comparable question in the > OpenSSH mailing list and didn't get a definitive answer how this can be > solved with OpenSSH config file means: > https://lists.gt.net/openssh/dev/70081) >
With my limited Python knowledge I had a look at https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/connection/ssh.py and saw some promising lines. In `exec_command` the connection plugin handles the host in these lines: args = (ssh_executable, self.host, cmd) In theory I could do `host = myuser@nameofprivilegeduserontargetserver@" + host + "@nameofsshproxy.srv.domain" -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e7492928-4a55-4bcb-abcf-ae54bf08f11a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
