On 17. aug. 2016 12:21, Bharath Bharadwaj wrote:
Hi All,

I have followed instructions on setting up bastion host from this article
"https://gagor.pl/2016/04/use-bastion-host-with-ansible/"; while I'm able to
connect to my cisco switch through bastion host from a command line by
executing "ssh -F ssh_config bastion" from the playbook I can't make it go
through the bastion host, it still continues to connect directly to the
switch, attached below is my playbook.

---

 - hosts: gatewayed
   remote_user: root
   become: yes
   connection: local

connection: local means, run everything on local machine, I guess that's not what you want.

I dont't think IOS has sudo/su, so become: yes might not work either.


--
Kai Stian Olstad

--
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/96c29ea8-8142-c9c8-e25e-dbd663307129%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to