I tried fully pathing it to no avail. It seems to be picking up on the custom ssh_config because if I change the ProxyCommand from ssh bastion nc %h %p to ssh [email protected] nc %h %p then it works fine. It's almost like it's not referencing the custom ssh_config for the ProxyCommand and is defaulting back to looking in the config in ~/.ssh or /etc/ssh.
On Tuesday, September 23, 2014 6:55:56 PM UTC-7, Michael DeHaan wrote: > > Could this possibly be because the CWD when executing ansible can't find > your specified ssh_config ? > > Maybe try fulling pathing it for starters? > > > > On Tue, Sep 23, 2014 at 9:27 PM, James Goodhouse <[email protected] > <javascript:>> wrote: > >> I am having some issues with a custom ssh_config file and not sure if I'm >> doing something wrong, if it's an ssh bug, or if it's an Ansible bug. >> >> I currently have a custom ssh_config file placed next to my ansible.cfg >> file. In the ansible.cfg file I have the line ssh_args = -F ssh_config under >> the [ssh_connection] section. Inside of my ssh_config file is the >> following: >> >> Host bastion >> HostName xxx.xxx.xxx.xxx >> User ubuntu >> Host app01 >> HostName xxx.xxx.xxx.xxx >> ProxyCommand ssh bastion nc %h %p >> User ubuntu >> >> If I then run the command ssh app01 -F ssh_config I receive the >> following error: >> >> ssh: Could not resolve hostname bastion: nodename nor servname >> provided, or not known >> >> However, if instead of referencing the ssh_config file, I instead place >> the contents into ~/.ssh/config and run the command ssh app01, all is >> well and it is able to resolve the hostname, bastion. >> >> Is there a setting I am missing somewhere or is this potentially a bug in >> either ssh or Ansible? >> >> Thanks for your help and if you need any more info, please ask! >> >> - James >> >> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/65690467-b6e1-4206-bb87-9250b2371c40%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ansible-project/65690467-b6e1-4206-bb87-9250b2371c40%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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/0419c450-4195-4e16-957f-cdb4071adc9c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
