Created
April 3, 2020 18:23
-
-
Save geordish/c6d4d9c39f556861b7ad97a6ebb79c3e to your computer and use it in GitHub Desktop.
netconf iosxr ansible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dave@ansible:/var/lib/awx/projects/dave$ ansible-playbook -vvvv -i 51.148.78.121, -k -u netconf netconf-hostname.yml | |
ansible-playbook 2.9.6 | |
config file = None | |
configured module search path = [u'/home/dave/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] | |
ansible python module location = /home/dave/.local/lib/python2.7/site-packages/ansible | |
executable location = /home/dave/.local/bin/ansible-playbook | |
python version = 2.7.17 (default, Nov 7 2019, 10:07:09) [GCC 7.4.0] | |
No config file found; using defaults | |
SSH password: | |
setting up inventory plugins | |
Parsed 51.148.78.121, inventory source with host_list plugin | |
Loading callback plugin default of type stdout, v2.0 from /home/dave/.local/lib/python2.7/site-packages/ansible/plugins/callback/default.pyc | |
PLAYBOOK: netconf-hostname.yml **************************************************************************************************************************************************** | |
Positional arguments: netconf-hostname.yml | |
ask_pass: True | |
remote_user: netconf | |
become_method: sudo | |
inventory: (u'51.148.78.121,',) | |
forks: 5 | |
tags: (u'all',) | |
verbosity: 4 | |
connection: smart | |
timeout: 10 | |
1 plays in netconf-hostname.yml | |
PLAY [Configure Hostname on IOS XR] *********************************************************************************************************************************************** | |
TASK [Gathering Facts] ************************************************************************************************************************************************************ | |
task path: /var/lib/awx/projects/dave/netconf-hostname.yml:2 | |
<51.148.78.121> attempting to start connection | |
<51.148.78.121> using connection plugin netconf | |
<51.148.78.121> local domain socket does not exist, starting it | |
<51.148.78.121> control socket path is /home/dave/.ansible/pc/cfc607467b | |
<51.148.78.121> local domain socket listeners started successfully | |
unable to load netconf plugin for network_os auto, falling back to default plugin | |
<51.148.78.121> | |
<51.148.78.121> local domain socket path is /home/dave/.ansible/pc/cfc607467b | |
<51.148.78.121> ESTABLISH LOCAL CONNECTION FOR USER: dave | |
<51.148.78.121> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/dave/.ansible/tmp/ansible-local-15509G3r3jR/ansible-tmp-1585938139.24-101619300997829 `" && echo ansible-tmp-1585938139.24-101619300997829="` echo /home/dave/.ansible/tmp/ansible-local-15509G3r3jR/ansible-tmp-1585938139.24-101619300997829 `" ) && sleep 0' | |
<51.148.78.121> Attempting python interpreter discovery | |
<51.148.78.121> EXEC /bin/sh -c 'echo PLATFORM; uname; echo FOUND; command -v '"'"'/usr/bin/python'"'"'; command -v '"'"'python3.7'"'"'; command -v '"'"'python3.6'"'"'; command -v '"'"'python3.5'"'"'; command -v '"'"'python2.7'"'"'; command -v '"'"'python2.6'"'"'; command -v '"'"'/usr/libexec/platform-python'"'"'; command -v '"'"'/usr/bin/python3'"'"'; command -v '"'"'python'"'"'; echo ENDFOUND && sleep 0' | |
<51.148.78.121> Python interpreter discovery fallback (pipelining support required for extended interpreter discovery) | |
Using module file /home/dave/.local/lib/python2.7/site-packages/ansible/modules/system/setup.py | |
<51.148.78.121> PUT /home/dave/.ansible/tmp/ansible-local-15509G3r3jR/tmpDBmzD7 TO /home/dave/.ansible/tmp/ansible-local-15509G3r3jR/ansible-tmp-1585938139.24-101619300997829/AnsiballZ_setup.py | |
<51.148.78.121> EXEC /bin/sh -c 'chmod u+x /home/dave/.ansible/tmp/ansible-local-15509G3r3jR/ansible-tmp-1585938139.24-101619300997829/ /home/dave/.ansible/tmp/ansible-local-15509G3r3jR/ansible-tmp-1585938139.24-101619300997829/AnsiballZ_setup.py && sleep 0' | |
<51.148.78.121> EXEC /bin/sh -c '/usr/bin/python /home/dave/.ansible/tmp/ansible-local-15509G3r3jR/ansible-tmp-1585938139.24-101619300997829/AnsiballZ_setup.py && sleep 0' | |
<51.148.78.121> EXEC /bin/sh -c 'rm -f -r /home/dave/.ansible/tmp/ansible-local-15509G3r3jR/ansible-tmp-1585938139.24-101619300997829/ > /dev/null 2>&1 && sleep 0' | |
[WARNING]: Platform linux on host 51.148.78.121 is using the discovered Python interpreter at /usr/bin/python, but future installation of another Python interpreter could change | |
this. See https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information. | |
ok: [51.148.78.121] | |
META: ran handlers | |
TASK [Configure IS-IS] ************************************************************************************************************************************************************ | |
task path: /var/lib/awx/projects/dave/netconf-hostname.yml:7 | |
<51.148.78.121> attempting to start connection | |
<51.148.78.121> using connection plugin netconf | |
<51.148.78.121> found existing local domain socket, using it! | |
<51.148.78.121> | |
<51.148.78.121> local domain socket path is /home/dave/.ansible/pc/cfc607467b | |
<51.148.78.121> ESTABLISH LOCAL CONNECTION FOR USER: dave | |
<51.148.78.121> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/dave/.ansible/tmp/ansible-local-15509G3r3jR/ansible-tmp-1585938141.01-145227102683076 `" && echo ansible-tmp-1585938141.01-145227102683076="` echo /home/dave/.ansible/tmp/ansible-local-15509G3r3jR/ansible-tmp-1585938141.01-145227102683076 `" ) && sleep 0' | |
Using module file /home/dave/.local/lib/python2.7/site-packages/ansible/modules/network/netconf/netconf_config.py | |
<51.148.78.121> PUT /home/dave/.ansible/tmp/ansible-local-15509G3r3jR/tmp3y3x1m TO /home/dave/.ansible/tmp/ansible-local-15509G3r3jR/ansible-tmp-1585938141.01-145227102683076/AnsiballZ_netconf_config.py | |
<51.148.78.121> EXEC /bin/sh -c 'chmod u+x /home/dave/.ansible/tmp/ansible-local-15509G3r3jR/ansible-tmp-1585938141.01-145227102683076/ /home/dave/.ansible/tmp/ansible-local-15509G3r3jR/ansible-tmp-1585938141.01-145227102683076/AnsiballZ_netconf_config.py && sleep 0' | |
<51.148.78.121> EXEC /bin/sh -c '/usr/bin/python /home/dave/.ansible/tmp/ansible-local-15509G3r3jR/ansible-tmp-1585938141.01-145227102683076/AnsiballZ_netconf_config.py && sleep 0' | |
<51.148.78.121> EXEC /bin/sh -c 'rm -f -r /home/dave/.ansible/tmp/ansible-local-15509G3r3jR/ansible-tmp-1585938141.01-145227102683076/ > /dev/null 2>&1 && sleep 0' | |
The full traceback is: | |
Traceback (most recent call last): | |
File "/home/dave/.ansible/tmp/ansible-local-15509G3r3jR/ansible-tmp-1585938141.01-145227102683076/AnsiballZ_netconf_config.py", line 102, in <module> | |
_ansiballz_main() | |
File "/home/dave/.ansible/tmp/ansible-local-15509G3r3jR/ansible-tmp-1585938141.01-145227102683076/AnsiballZ_netconf_config.py", line 94, in _ansiballz_main | |
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS) | |
File "/home/dave/.ansible/tmp/ansible-local-15509G3r3jR/ansible-tmp-1585938141.01-145227102683076/AnsiballZ_netconf_config.py", line 40, in invoke_module | |
runpy.run_module(mod_name='ansible.modules.network.netconf.netconf_config', init_globals=None, run_name='__main__', alter_sys=True) | |
File "/usr/lib/python2.7/runpy.py", line 188, in run_module | |
fname, loader, pkg_name) | |
File "/usr/lib/python2.7/runpy.py", line 82, in _run_module_code | |
mod_name, mod_fname, mod_loader, pkg_name) | |
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code | |
exec code in run_globals | |
File "/tmp/ansible_netconf_config_payload_6vBk1h/ansible_netconf_config_payload.zip/ansible/modules/network/netconf/netconf_config.py", line 446, in <module> | |
File "/tmp/ansible_netconf_config_payload_6vBk1h/ansible_netconf_config_payload.zip/ansible/modules/network/netconf/netconf_config.py", line 325, in main | |
File "/tmp/ansible_netconf_config_payload_6vBk1h/ansible_netconf_config_payload.zip/ansible/module_utils/network/netconf/netconf.py", line 55, in get_capabilities | |
File "/tmp/ansible_netconf_config_payload_6vBk1h/ansible_netconf_config_payload.zip/ansible/module_utils/connection.py", line 185, in __rpc__ | |
ansible.module_utils.connection.ConnectionError: Negotiation failed: Error reading SSH protocol banner[Errno 104] Connection reset by peer | |
fatal: [51.148.78.121]: FAILED! => { | |
"changed": false, | |
"module_stderr": "Traceback (most recent call last):\n File \"/home/dave/.ansible/tmp/ansible-local-15509G3r3jR/ansible-tmp-1585938141.01-145227102683076/AnsiballZ_netconf_config.py\", line 102, in <module>\n _ansiballz_main()\n File \"/home/dave/.ansible/tmp/ansible-local-15509G3r3jR/ansible-tmp-1585938141.01-145227102683076/AnsiballZ_netconf_config.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/dave/.ansible/tmp/ansible-local-15509G3r3jR/ansible-tmp-1585938141.01-145227102683076/AnsiballZ_netconf_config.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.network.netconf.netconf_config', init_globals=None, run_name='__main__', alter_sys=True)\n File \"/usr/lib/python2.7/runpy.py\", line 188, in run_module\n fname, loader, pkg_name)\n File \"/usr/lib/python2.7/runpy.py\", line 82, in _run_module_code\n mod_name, mod_fname, mod_loader, pkg_name)\n File \"/usr/lib/python2.7/runpy.py\", line 72, in _run_code\n exec code in run_globals\n File \"/tmp/ansible_netconf_config_payload_6vBk1h/ansible_netconf_config_payload.zip/ansible/modules/network/netconf/netconf_config.py\", line 446, in <module>\n File \"/tmp/ansible_netconf_config_payload_6vBk1h/ansible_netconf_config_payload.zip/ansible/modules/network/netconf/netconf_config.py\", line 325, in main\n File \"/tmp/ansible_netconf_config_payload_6vBk1h/ansible_netconf_config_payload.zip/ansible/module_utils/network/netconf/netconf.py\", line 55, in get_capabilities\n File \"/tmp/ansible_netconf_config_payload_6vBk1h/ansible_netconf_config_payload.zip/ansible/module_utils/connection.py\", line 185, in __rpc__\nansible.module_utils.connection.ConnectionError: Negotiation failed: Error reading SSH protocol banner[Errno 104] Connection reset by peer\n", | |
"module_stdout": "", | |
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", | |
"rc": 1 | |
} | |
PLAY RECAP ************************************************************************************************************************************************************************ | |
51.148.78.121 : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment