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
According to the man page of rsync (e.g. https://ss64.com/bash/rsync_options.html) --rsh=COMMAND has an exotic way to handle quotation. E.g. quotation of the param list like
SUMMARY
According to the man page of rsync (e.g. https://ss64.com/bash/rsync_options.html)
--rsh=COMMAND
has an exotic way to handle quotation. E.g. quotation of the param list like--rsh='/usr/bin/ssh -oProxyCommand="ssh -i -W %h:%p -oProxyCommand=\"ssh -W jumphost2:22 ansible@jumphost1\" ansible@jumphost2"'
should instead be escaped like
--rsh='/usr/bin/ssh -oProxyCommand="ssh -i -W %h:%p -oProxyCommand=""ssh -W jumphost2:22 ansible@jumphost1"" ansible@jumphost2"'
To be precise: an escaped single or double-quote should written
""
instead of\"
, with single quotes accordingly.Because we use such strings successfully as ansible_ssh_args for jumping we also need to have rsync handle that correctly.
ISSUE TYPE
COMPONENT NAME
synchronize
ANSIBLE VERSION
This is the Ansible distribution in container image ansible/awx-ee:24.5.0
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Container: ansible/awx-ee:24.5.0
Executed within AWX 24.5.0
With awx-operator 2.18.0
STEPS TO REPRODUCE
Use group vars like:
With a dest_host1 it works perfectly jumping to it via ssh and all tasks used like
but if we use synchronize like
EXPECTED RESULTS
This is what I get, when I replace the
\"
with""
in the command. After that, the --rsh parameter looks like the second described in the SUMMARY.ACTUAL RESULTS
with the same config for dest_host1, we get the following AWX output in json format:
The very same output I get, when I reproduce it in our dev environment. On commandline it says:
The text was updated successfully, but these errors were encountered: