FS#70659 - Ansile not respecting OpenSSH client configuration file
Attached to Project:
Community Packages
Opened by Júlio Dutra (dutrajulio) - Friday, 30 April 2021, 13:23 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Saturday, 15 May 2021, 17:28 GMT
Opened by Júlio Dutra (dutrajulio) - Friday, 30 April 2021, 13:23 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Saturday, 15 May 2021, 17:28 GMT
|
Details
Description: After the change from "ansible-base" to
"ansible-core" theirs binaries don't respect the
configurations in "~/.ssh/config".
Additional info: * ansible-core-2.11.0-2 Steps to reproduce: Creates an example entry in "~/.ssh/config" Host 192.168.0.1 Port 2222 Run the following ad-hoc command $ ansible all -i 192.168.0.1, -m setup 192.168.0.1 | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host 192.168.0.14 port 22: Connection refused", "unreachable": true } The output shows "port 22" and not "port 2222". As workaround i downgraded to the ansible-base package as well the packages that depends on it. |
This task depends upon
I checked my system and there is no pacnew files or any kind of special configuration for Ansible.
I ran in verbose mode and attached the output files.
But, if your system is working as intent, then i have no glue what is happening on my.
I will keep searching here.
ansible-core-2.11.0.txt (9.9 KiB)
I tested too in a docker environment and could reproduce the problem.
I looked in the upstream bug system and find anything yet. I will report there too.
Thanks.
I will also report here:
https://github.com/ansible/ansible/issues/74524
Edit: https://github.com/ansible/ansible/issues/74524#issuecomment-830383951
More info: https://github.com/ansible/ansible/issues/74524#issuecomment-830420414
[1] https://github.com/ansible/ansible/commit/30912b6a47813940592bfcf7cb7d1d6e8d608da4
[2] https://github.com/ansible/ansible/pull/74562