Skip to content

Instantly share code, notes, and snippets.

@alesharik
Created July 22, 2020 19:12
Show Gist options
  • Save alesharik/28bef97f1108606732f552b82335ba8d to your computer and use it in GitHub Desktop.
Save alesharik/28bef97f1108606732f552b82335ba8d to your computer and use it in GitHub Desktop.
ansible-playbook 2.9.11
config file = None
configured module search path = ['/home/alexey/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.7/site-packages/ansible
executable location = /usr/lib/python-exec/python3.7/ansible-playbook
python version = 3.7.8 (default, Jul 9 2020, 04:36:03) [GCC 9.2.0]
No config file found; using defaults
host_list declined parsing /home/alexey/Projects/home/infra/inventory.yaml as it did not pass its verify_file() method
script declined parsing /home/alexey/Projects/home/infra/inventory.yaml as it did not pass its verify_file() method
Skipping empty key (alesharik-main) in group (servers)
Skipping empty key (mikrotik-main) in group (routers)
Parsed /home/alexey/Projects/home/infra/inventory.yaml inventory source with yaml plugin
PLAYBOOK: router-issue.yaml ***********************************************************************************************************************************************************************
1 plays in router-issue.yaml
PLAY [mikrotik-main] ******************************************************************************************************************************************************************************
TASK [Gathering Facts] ****************************************************************************************************************************************************************************
task path: /home/alexey/Projects/home/infra/router-issue.yaml:2
<192.168.63.1> ESTABLISH LOCAL CONNECTION FOR USER: alexey
<192.168.63.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/alexey/.ansible/tmp/ansible-local-6222071dkncwdr `"&& mkdir /home/alexey/.ansible/tmp/ansible-local-6222071dkncwdr/ansible-tmp-1595445031.2143161-622213-106786573114648 && echo ansible-tmp-1595445031.2143161-622213-106786573114648="` echo /home/alexey/.ansible/tmp/ansible-local-6222071dkncwdr/ansible-tmp-1595445031.2143161-622213-106786573114648 `" ) && sleep 0'
<mikrotik-main> Attempting python interpreter discovery
<192.168.63.1> 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'
<192.168.63.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
<mikrotik-main> Python interpreter discovery fallback (unable to get Linux distribution/version info)
Using module file /usr/lib/python3.7/site-packages/ansible/modules/system/setup.py
<192.168.63.1> PUT /home/alexey/.ansible/tmp/ansible-local-6222071dkncwdr/tmp07ecuj0w TO /home/alexey/.ansible/tmp/ansible-local-6222071dkncwdr/ansible-tmp-1595445031.2143161-622213-106786573114648/AnsiballZ_setup.py
<192.168.63.1> EXEC /bin/sh -c 'chmod u+x /home/alexey/.ansible/tmp/ansible-local-6222071dkncwdr/ansible-tmp-1595445031.2143161-622213-106786573114648/ /home/alexey/.ansible/tmp/ansible-local-6222071dkncwdr/ansible-tmp-1595445031.2143161-622213-106786573114648/AnsiballZ_setup.py && sleep 0'
<192.168.63.1> EXEC /bin/sh -c '/usr/bin/python /home/alexey/.ansible/tmp/ansible-local-6222071dkncwdr/ansible-tmp-1595445031.2143161-622213-106786573114648/AnsiballZ_setup.py && sleep 0'
<192.168.63.1> EXEC /bin/sh -c 'rm -f -r /home/alexey/.ansible/tmp/ansible-local-6222071dkncwdr/ansible-tmp-1595445031.2143161-622213-106786573114648/ > /dev/null 2>&1 && sleep 0'
[WARNING]: Platform linux on host mikrotik-main 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: [mikrotik-main]
META: ran handlers
TASK [mikrotik common/copy JSON parser] ***********************************************************************************************************************************************************
task path: /home/alexey/Projects/home/infra/router-issue.yaml:6
The full traceback is:
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/ansible/executor/task_executor.py", line 147, in run
res = self._execute()
File "/usr/lib/python3.7/site-packages/ansible/executor/task_executor.py", line 660, in _execute
result = self._handler.run(task_vars=variables)
File "/home/alexey/.ansible/collections/ansible_collections/ansible/netcommon/plugins/action/net_put.py", line 80, in run
self._handle_template(convert_data=False)
AttributeError: 'ActionModule' object has no attribute '_handle_template'
fatal: [mikrotik-main]: FAILED! => {
"msg": "Unexpected failure during module execution.",
"stdout": ""
}
PLAY RECAP ****************************************************************************************************************************************************************************************
mikrotik-main : 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