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:
parent
35da0100e0
commit
f34679bf3b
1 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
become: true
|
||||
package:
|
||||
|
|
Loading…
Reference in a new issue