diff --git a/tasks/packages.yml b/tasks/packages.yml index 70934fc..0ef442a 100644 --- a/tasks/packages.yml +++ b/tasks/packages.yml @@ -1,4 +1,19 @@ --- +- name: update repo-cache for debian/ubuntu + become: true + apt: + update_cache: yes + cache_valid_time: 3600 + when: + ansible_os_family == 'Debian' + +- name: update repo-cache for debian/ubuntu + become: true + dnf: + update_cache: yes + when: + - ansible_os_family == 'RedHat' and ansible_distribution_version | float >= 8 + - name: install base packages for all operating systems become: true package: