opensuse: move package installation to system_packages

No reason to special case
This commit is contained in:
Max Gautier
2025-05-19 17:49:29 +02:00
parent 2152022926
commit d5b2a9b5ba
4 changed files with 12 additions and 30 deletions

View File

@@ -69,7 +69,8 @@
package:
name: "{{ item.packages | dict2items | selectattr('value', 'ansible.builtin.all') | map(attribute='key') }}"
state: "{{ item.state }}"
update_cache: true
update_cache: "{{ true if ansible_pkg_mgr in ['zypper', 'apt', 'dnf'] else omit }}"
cache_valid_time: "{{ 86400 if ansible_pkg_mgr == 'apt' else omit }}" # 24h
register: pkgs_task_result
until: pkgs_task_result is succeeded
retries: "{{ pkg_install_retries }}"