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 m...@44.55.66.77" 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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/25b6293f-28b7-4e45-9f52-0cf4b53383f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6fd8af45-ae09-45dc-9167-fd492db99dd0%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f4ec2561-a925-47a7-99e5-7116db810100%40googlegroups.com.
[defaults]
transport=ssh
ssh_args= -F /work/sshconfig
remote_user=dummyuser
Then everything fails because Ansible tries to use "dummyuser" to connect.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/090b1989-ed9c-4ae8-9a15-ecefd329ca96%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9efa7c9d-8d22-4228-8dc0-86eab4b31184%40googlegroups.com.
Host *.example.comHost 128.220.19.*
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0c16cf5f-e2f5-4c05-9fde-2fe7e93b438b%40googlegroups.com.