1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_packages.git synced 2024-08-16 10:19:51 +02:00

Merge pull request #6 from TheRojam/master

++ steps to update the repo caches of deb/rh sys
This commit is contained in:
L3D 2020-11-11 11:29:30 +01:00 committed by GitHub
commit 2d2f6a7a91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: