Connecting to an instance via Bastion Host

41 views
Skip to first unread message

Bob Brown

unread,
Oct 28, 2014, 5:23:14 PM10/28/14
to ansible...@googlegroups.com
So I have Ansible setup in a local machine.
My local machine has ssh access to a Bastion Host, essentially an ec2 instance that I can ssh to directly with my keys
The instances I want to update/change/create all need to be accessed from the Bastion Host since it has the Nat to connect into the VPC

For both the command line and for a playbook, how do I set things up so that I can run a command or a playbook across many hosts but start the process from my local ansible box?

Bob

Michael DeHaan

unread,
Oct 30, 2014, 4:35:50 PM10/30/14
to ansible...@googlegroups.com
Basically you can set up ProxyCommand via ~/.ssh/config if you want to do this (see Google, etc).

Otherwise, you could also run Ansible from that Bastion Host by logging into that machine first and running Ansible there.



--
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/6dbec1ad-05a9-478a-bb34-c840a74e0873%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages