Ansible will use your SSH config when using the ssh (not paramiko)
transport, perhaps it's not finding it for some reason.

paramiko would be the default if you were running from RHEL/CentOS 6 or
before, where OpenSSH is not new enough to support ControlMaster, and
paramiko is therefore still faster.  (review for everyone: accelerate mode
is the performance option there, since pipeling is OpenSSH only).

Let's start with what OS you are running form as that may highlight that
transport question.   If not, we can ask other questions.



On Thu, May 22, 2014 at 6:12 PM, Slim Slam <[email protected]> wrote:

> Ansible 1.6.1
>
> I'm trying to set things up so that I can specify a bastion host as  a
> gateway
> to my other machines.
>
> I'd like Ansible to use an SSH config file that I keep in git.
>
> So, I have a file named  "sshconfig" with:
>
> Host *
>
>      ServerAliveInterval    60
>
>      TCPKeepAlive           yes
>
>      ProxyCommand           ssh 55.232.102.151 'nc %h %p'
>
>      ControlMaster          auto
>
>
> Where 55.232.102.151 is the bastion IP address.
>
>
> My ansible.cfg file looks like:
>
>
> [defaults]
>
> transport = ssh
>
> ssh_args = -F sshconfig -o ControlPersist=15m
>
>
> If I run  "ssh  -F sshconfig [email protected]" it uses the bastion server
> as expected.
>
> But Ansible doesn't ever seem to use my "sshconfig" file (I don't see
> anything about
>
> it in the verbose output, nor the bastion IP address).  '
>
>
> Does ssh_args actually permit "-F sshconfig" or does it only allow "-o
> param=something" options?
>
>
> J
>
>
>  --
> 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/25b6293f-28b7-4e45-9f52-0cf4b53383f2%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/25b6293f-28b7-4e45-9f52-0cf4b53383f2%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/CA%2BnsWgzpKy24Eofpf0w3i%2B-NucwykLo2Vofw7N3bBBNN2MSBdw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to