Hi, can anyone give a help on this? On Thursday, August 18, 2016 at 12:41:38 PM UTC-4, 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 > gather_facts: false > > tasks: > - name: Get show version on ios device > vars: > cli: > transport: cli > ios_command: > commands: show version > host: "{{ inventory_hostname }}" > provider: "{{ cli }}" > username: test > password: test@123 >
-- 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/b53ca777-1312-43c1-b1a4-684dc12addfa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
