debian-based distro: handle apt update cache when installing packages

The package module pass options to the underlying packages manager
module if they support it. No need to handle it in bootstrap.
This commit is contained in:
Max Gautier
2025-05-19 17:40:54 +02:00
parent f13b80cac0
commit 2152022926
2 changed files with 1 additions and 12 deletions

View File

@@ -69,6 +69,7 @@
package:
name: "{{ item.packages | dict2items | selectattr('value', 'ansible.builtin.all') | map(attribute='key') }}"
state: "{{ item.state }}"
update_cache: true
register: pkgs_task_result
until: pkgs_task_result is succeeded
retries: "{{ pkg_install_retries }}"