Hi Thanks for sharing information. I donot have dns server but when I tried to declare
in host file as below: I am not able to use R1 as Ping or any other utility.
[routers]
192.168.1.11 R1
192.168.1.12 R2
→ Even When I tried to run below code i am getting error
ansible all -i 192.168.1.11, -c network_cli -u admin -k -m ios_facts -e ansible_network_os=ios
192.168.1.11 | UNREACHABLE! => {
"changed": false,
"msg": "Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in \"/tmp\". Failed command was: ( umask 77 && mkdir -p \"` echo /home/nakul/.ansible/tmp/ansible-local-850tkbma0g/ansible-tmp-1594901487.109081-204798059538934 `\" && echo ansible-tmp-1594901487.109081-204798059538934=\"` echo /home/nakul/.ansible/tmp/ansible-local-850tkbma0g/ansible-tmp-1594901487.109081-204798059538934 `\" ), exited with result 1, stdout output: ansible-tmp-1594901487.109081-204798059538934=/home/nakul/.ansible/tmp/ansible-local-850tkbma0g/ansible-tmp-1594901487.109081-204798059538934\n",
"unreachable": true
}
Even if I put sudo before the command it gives warning of not having paramiko installed..and I have paramiko installed in my ubuntu.
paramiko 2.7.1
pip 20.0.2
pyasn1 0.4.2
pyasn1-modules 0.2.1