Thanks, what should i set the connection as to make sure it goes through the bastion host? I have already setup the ssh config and ansible.cfg with the ssh args, since you mentioned connection= local it won't go from bastion, i want to change this to go through bastion host.
Thank you. On Tuesday, August 23, 2016 at 4:11:42 AM UTC-4, Kai Stian Olstad wrote: > > 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/8e3d9065-183e-47d3-9030-cb44d4d14fbc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
