Description
SUMMARY
Dear Community!
I have a weird issue. I have some Mikrotik devices, these are using my ansible backup playbook, to do a backup once a week.
Some of them now fails to do the backup (one site). Some devices were gave up during a storm recently, but some are still the same as before. New, identical devices were installed, backup was applied to them.
Around since then, the backup script is not working at this site. On all of the devices.
SSH is working correctly, I can log-in from the server to these devices.
API connection is working correctly, even in Ansible.
I can see that Ansible can log-in, key is accepted, access is granted. But after that, nothing happens basically.
Login attempt by Ansible:

In Ansible, I can't find anything suspicious. It just times out, as it is unable to reach the destination...:
<10.0.13.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-local-2069615kcu5ya9/ansible-tmp-1697089639.2060575-207982-15282461545527/ > /dev/null 2>&1 && sleep 0'
The full traceback is:
File "/tmp/ansible_community.network.routeros_command_payload_yfp95ui9/ansible_community.network.routeros_command_payload.zip/ansible_collections/community/routeros/plugins/module_utils/routeros.py", line 51, in get_capabilities
capabilities = Connection(module._socket_path).get_capabilities()
File "/tmp/ansible_community.network.routeros_command_payload_yfp95ui9/ansible_community.network.routeros_command_payload.zip/ansible/module_utils/connection.py", line 200, in __rpc__
raise ConnectionError(to_text(msg, errors='surrogate_then_replace'), code=code)
fatal: [ayc-sw3]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"commands": [
"/system/leds/set 0 type=on"
],
"interval": 1,
"match": "all",
"retries": 10,
"wait_for": null
}
},
"msg": "command timeout triggered, timeout value is 60 secs.\nSee the timeout setting options in the Network Debug and Troubleshooting Guide."
}
The full traceback is:
File "/tmp/ansible_community.network.routeros_command_payload_6mq7m511/ansible_community.network.routeros_command_payload.zip/ansible_collections/community/routeros/plugins/module_utils/routeros.py", line 51, in get_capabilities
capabilities = Connection(module._socket_path).get_capabilities()
File "/tmp/ansible_community.network.routeros_command_payload_6mq7m511/ansible_community.network.routeros_command_payload.zip/ansible/module_utils/connection.py", line 200, in __rpc__
raise ConnectionError(to_text(msg, errors='surrogate_then_replace'), code=code)
fatal: [ayc-gw1]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"commands": [
"/system/leds/set 0 type=on"
],
"interval": 1,
"match": "all",
"retries": 10,
"wait_for": null
}
},
"msg": "command timeout triggered, timeout value is 60 secs.\nSee the timeout setting options in the Network Debug and Troubleshooting Guide."
}
ISSUE TYPE
- Bug Report
COMPONENT NAME
community.network.routeros_command
ANSIBLE VERSION
ansible [core 2.14.3]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/kristof/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/kristof/.local/lib/python3.10/site-packages/ansible
ansible collection location = /home/kristof/.ansible/collections:/usr/share/ansible/collections
executable location = /home/kristof/.local/bin/ansible
python version = 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] (/usr/bin/python3)
jinja version = 3.0.3
libyaml = True
COLLECTION VERSION
community.routeros 2.9.0