cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1430
Views
0
Helpful
3
Replies

Ansible IOS native modules - Update

ddraper_irl
Level 1
Level 1

Has anyone completed the LL: Ansible IOS native modules recently? I wasn't able to complete this after an hour of attempts using:

  • Sandbox: IOS XE on CSR Latest Code

 

I am trying to run the playbooks directly on my machine, I can't clone the supplied repo since public internet access is blocked. The hosts file uses port 8181 to connect, however that recently has been blocked. 

 

Port 8181 Blocked:

nc -zv 10.10.20.48 8181
nc: connectx to 10.10.20.48 port 8181 (tcp) failed: Connection refused

 

Running Playbook timing out against `iosxe`

ansible-playbook ansible-02-ios-modules/02-ios_command_show_ntp.yaml -i hosts -e "hosts=iosxe"
[WARNING]: Found variable using reserved name: hosts

PLAY [Sample IOS show ntp for Ansible 2.5] ***************************************************************************************************

TASK [run show ntp associations] *************************************************************************************************************

Running Playbook timing out against `sandbox` 

ansible-playbook ansible-02-ios-modules/02-ios_command_show_ntp.yaml -i hosts -e "hosts=sandbox"
[WARNING]: Found variable using reserved name: hosts

PLAY [Sample IOS show ntp for Ansible 2.5] ***************************************************************************************************

TASK [run show ntp associations] *************************************************************************************************************

 

I included this info as well in /group_vars/iosxe.yaml 

 

ansible_connection: network_cli
ansible_become: yes
ansible_become_method: enable
ansible_network_os: ios
ansible_user: 'developer'
ansible_ssh_pass: 'C1sco12345'
ansible_port: 22

 

 

 

1 Accepted Solution

Accepted Solutions

Using IOS XE on CSR Latest Code AlwaysOn lab and getting correct output from the playbook. Issue resolved.  

 

View solution in original post

3 Replies 3

I dont think this is a sandbox issue, post the issue under https://github.com/CiscoDevNet/learning-labs-issues/ for this to be checked please.

 

Thanks!

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Thank you @bigevilbeard for pointing me in the right direction. 

 

The issue has been submitted on Github

Using IOS XE on CSR Latest Code AlwaysOn lab and getting correct output from the playbook. Issue resolved.