Introduce a timeout for package installation

Sometimes package installations can get into weird state and stuck for a
very long time.
Timeout the tasks to fail early, with a customizable timeout duration.
This commit is contained in:
Max Gautier
2026-01-19 11:13:57 +01:00
parent 7aea6a1df2
commit efdff890ed
2 changed files with 2 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
--- ---
# number of times package install task should be retried # number of times package install task should be retried
pkg_install_retries: 4 pkg_install_retries: 4
pkg_install_timeout: "{{ 5 * 60 }}"
yum_repo_dir: /etc/yum.repos.d yum_repo_dir: /etc/yum.repos.d

View File

@@ -63,3 +63,4 @@
label: "{{ item.action_label }}" label: "{{ item.action_label }}"
tags: tags:
- bootstrap_os - bootstrap_os
timeout: "{{ pkg_install_timeout }}"