Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

synchronize "use_ssh_args" does not work when delegating #505

Open
jnm27 opened this issue Oct 27, 2023 · 0 comments
Open

synchronize "use_ssh_args" does not work when delegating #505

jnm27 opened this issue Oct 27, 2023 · 0 comments

Comments

@jnm27
Copy link

jnm27 commented Oct 27, 2023

SUMMARY

The use_ssh_args parameter does not work with delegate_to in the general case. It only happens to work if the delegate_to host happens to be ssh and happens to have the same ssh_args that are intended for the real target.

  • If the delegate_to host has any other type of connection besides ssh, then use_ssh_args has no effect at all.
  • If the delegate_to host does have an ssh connection, but has ssh_args that are specific to that connection and are incompatible with the real target, then it does not work properly.
ISSUE TYPE
  • Bug Report
COMPONENT NAME

synchronize.py

ANSIBLE VERSION
2.15.0
COLLECTION VERSION
1.5.4
CONFIGURATION

OS / ENVIRONMENT

RHEL8

STEPS TO REPRODUCE
Use synchronize.py with delegate_to: to something other than inventory_hostname, with use_ssh_args: True.
Try it with a delegate_to host that is using ssh but has different ssh args, and then try it with a delegate_to host that is not using ssh.
EXPECTED RESULTS

synchronize uses the ssh args for the target host instead of the delegated host

ACTUAL RESULTS

synchronize always uses ssh args from the delegated host and tries to apply them to the target host, if the delegated host is ssh to begin with

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant