From 0b102287d13ef1c575c45038005dc8c839e69335 Mon Sep 17 00:00:00 2001
From: yjqg6666 <jinking.this@gmail.com>
Date: Thu, 1 Jun 2023 09:15:45 +0800
Subject: [PATCH] [#10148] The download.timeout can be changed by variable
 download.timeout (#10149)

Reference:
  https://docs.ansible.com/ansible/latest/collections/ansible/builtin/get_url_module.html#parameter-timeout
---
 roles/download/tasks/download_file.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/roles/download/tasks/download_file.yml b/roles/download/tasks/download_file.yml
index 3bddd7448..e6576f29e 100644
--- a/roles/download/tasks/download_file.yml
+++ b/roles/download/tasks/download_file.yml
@@ -93,6 +93,7 @@
       url_username: "{{ download.username | default(omit) }}"
       url_password: "{{ download.password | default(omit) }}"
       force_basic_auth: "{{ download.force_basic_auth | default(omit) }}"
+      timeout: "{{ download.timeout | default(omit) }}"
     delegate_to: "{{ download_delegate if download_force_cache else inventory_hostname }}"
     run_once: "{{ download_force_cache }}"
     register: get_url_result
-- 
GitLab