ansible bastion host with passwords only

Hi,

I just started using ansible and so far it works nice. I was able to create playbooks and execute them without any problems when I have a direct access to the server where I need the commands to be run.

Now I have a situation where I need from my machine, I will call it machine A, connect to machine B and from machine B connect to machine C, which is where the commands should actually run.

ssh keys are not an option. I can’t import keys from one machine into the other. I don’t have .pem files to use. I am restricted to passwords only.

Can I do this using ansible?

I followed this blog post https://medium.com/@paulskarseth/ansible-bastion-host-proxycommand-e6946c945d30#.lv8udztu0
but I still cannot connect from machine B to machine C.

I found some posts here in the forum that used other parameters on the proxycommand like ‘nc’.

I am using ansible 1.9.4 on a ubuntu box.

Thanks for any help.

Kelly