Reputation: 208
I'm using an Ansible role from Ansible Galaxy which downloads some software from the Internet and then installs it. It uses the get_url
module to do that.
The problem is that I am working behind a corporate proxy that will first download the software and then send it to the Ansible playbook running. It causes get_url
to hit its default timeout of 10s. It is working fine if I increase the timeout.
As I'm using a third party role, I don't want to modify it and was wondering if there was any way to increase the get_url
timeout at the playbook level instead.
Upvotes: 2
Views: 1210
Reputation: 68289
You can set proxy globally via environment, but not timeout.
As a workaround, you can make custom action plugin to decorate get_url
calls.
It can overwrite timeout
parameter with increased value instead of default 10
.
I've posted example of this technique for setup
module here.
Upvotes: 1