1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_base.git synced 2024-08-16 14:29:50 +02:00

++ steps to update the repo caches of deb/rh sys

This commit is contained in:
therojam 2020-11-11 00:39:13 +01:00
parent 35da0100e0
commit f34679bf3b

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'
- name: install base packages for all operating systems - name: install base packages for all operating systems
become: true become: true
package: package: