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/f5040845-8f87-4e17-a99c-185f6b579a3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.