K
K
karibskii_koks2018-06-20 13:29:46
Cisco
karibskii_koks, 2018-06-20 13:29:46

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

1 answer(s)
Y
Yuri, 2018-06-20
@TaHKucT

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

(global timeout for connection and commands), and then set timeout in a specific task, and it must be less than the timeouts specified in the config.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question