I need help to run write ansible playbook to run show commands on Cisco Starent devices
And I’m running into some errors
Playbook
I need help to run write ansible playbook to run show commands on Cisco Starent devices
And I’m running into some errors
Playbook
It appears you may have wrongly mapped the attribute - commands beneath the ios_commands module in task “Run Show Command”
see examples here and pay attention to indentation, the line “tasks” appears to be wrongly indented also.
I would try the following:
Thanks for your help Michael.
The playbook is working now but ran into a another error
PLAY [Run Show Command] ************************************************************************
TASK [run show command] ************************************************************************
fatal: [all]: FAILED! => {“msg”: “[Errno -3] Temporary failure in name resolution”}
to retry, use: --limit @/home/ansible/test_playbook.retry
PLAY RECAP *************************************************************************************
all : ok=0 changed=0 unreachable=0 failed=1
Thanks for your help Michael.
The playbook is working now but ran into a another errorPLAY [Run Show Command] ************************************************************************
TASK [run show command] ************************************************************************
fatal: [all]: FAILED! => {"msg": "[Errno -3] Temporary failure in name resolution"}
to retry, use: --limit @/home/ansible/test_playbook.retryPLAY RECAP *************************************************************************************
all : ok=0 changed=0 unreachable=0 failed=1
Your inventory is broken: [WARNING]: Found both group and host with same name: all
Regards
Racke