02-03-2021 05:21 AM
Hi
This is my first time using Sandbox and i am using a VM with ansible installed on my it. I am using the NETCONF/RESTCONF YANG always on sandbox to practice my Ansible playbooks. I can ping the sandbox device and it replies with a pong but when i try and gather facts of pull any config from the sandbox it fails to connect? Is anyone else having this problem? Would help if i can resolve this so i can get going learning Ansible!
02-03-2021 06:35 AM
Hello @appanahdr46250 as of time testing 2:30 PM Wednesday, February 3, 2021 Coordinated Universal Time (UTC).
(venv) STUACLAR-M-R6EU:ios_xe_ansible stuaclar$ ansible-playbook command_show.yaml -i hosts PLAY [Getting started] ************************************************************************************************************************************************* TASK [GATHERING FACTS] ************************************************************************************************************************************************* [WARNING]: default value for `gather_subset` will be changed to `min` from `!config` v2.11 onwards ok: [ios-xe-mgmt.cisco.com] TASK [run multiple commands] ******************************************************************************************************************************************* ok: [ios-xe-mgmt.cisco.com] TASK [display all] ***************************************************************************************************************************************************** ok: [ios-xe-mgmt.cisco.com] => { "output[\"stdout_lines\"]": [ [ "Interface IP-Address OK? Method Status Protocol", "GigabitEthernet1 10.10.20.48 YES other up up ", "GigabitEthernet2 unassigned YES NVRAM up up ", "GigabitEthernet3 3.3.3.3 YES other administratively down down ", "Loopback0 1.1.1.1 YES other up up ", "Loopback2 2.2.2.2 YES other up up ", "Loopback10 3.3.3.3 YES other up up ", "Loopback12 1.1.11.1 YES other up up ", "Loopback21 unassigned YES unset up up ", "Loopback23 123.123.123.123 YES other up up ", "Loopback98 10.98.98.1 YES other up up" ] ] } PLAY RECAP ************************************************************************************************************************************************************* ios-xe-mgmt.cisco.com : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Check you can ssh to the always on sandbox and get a connection.
Hope this helps.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide