Answer the question
In order to leave comments, you need to log in
How to increase Ansible's sh run output timeout?
Hello, I have a Catalyst 6513 from which show run output should be expected in about 30-40 seconds. Which item in ansible.cfg needs to be corrected to get rid of the error:
FAILED! => {"changed": false, "msg": "unable to retrieve current config", "stderr": " timeout trying to send command: show running-config ", "stderr_lines": ["timeout trying to send command: show running-config"]} ?
Answer the question
In order to leave comments, you need to log in
I suspect that the data from the documentation will help you . That is, in the config you need to write
[persistent_connection]
connect_timeout = 60
command_timeout = 55
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question