Current state of pivoting through a jumpbox

Hi everyone,

First-time poster here. I’d like to have Ansible on one subnet pivot through a jumpbox to a different subnet (technically a separate datacenter) for provisioning a host.

I found posts such as this:

https://groups.google.com/forum/#!searchin/ansible-project/jumpbox/ansible-project/-whVJFjYESg/LTf6dRzoFUsJ

and this:

http://alexbilbie.com/2014/07/using-ansible-with-a-bastion-host/

The machine being provisioned has an internal IP and provisioning fails with ‘FAILED: [Errno 101] Network is unreachable’. This makes sense since these are separate networks and we don’t use a VPN. What confuses me is why Ansible isn’t pivoting.

This is maybe a complicated setup (and an edge-case at that), so any advice as to alternative methods will also be taken into consideration. Maybe there’s even an “accepted” way to do this that I don’t know about. We are also open to simply having an Ansible provisioning box at our secondary location.

Best regards,

Andrew

Andrew, try to create public SSH bastions for every Amazon VPC you have at the moment. So you will have an ability to provision any private node over appropriate Bastion from Ansible playbook.

The ony problem will be to tell Ansible to reload ssh_config on-the-fly if you would like to generate it from playbook and use at farther steps of the same playbook.