Connection timeouts during deploy

Our client based in Zimbabwe is running into connection timeouts with some components during a deploy. One consistent one is:

TASK [kafka : Download Kafka] ***************************************************************************************************************************************************************
fatal: []: FAILED! => {“changed”: false, “dest”: “/opt/kafka_2.10-”, “elapsed”: 10, “msg”: “Connection failure: timed out”, “url”: “”}

It seems the timeout is 10 seconds and it’s taking longer than that for the server to respond. They were able to manually download the file in their browser, though the server is a bit slow to respond initially.

Is there a way we can increase the timeout through a parameter or perhaps a script edit?

Hi Ed, it looks like that download happens here, using the get_url command. The ansible docs show an optional timeout paramer that defaults to 10 seconds.

That could probably be modified as needed. It’d be nice if there’s some way to globally change the default timeout, but I’m not sure what sort of options there are for that.

1 Like

That’s helpful Ethan, thanks!