2022-08-01 18:20:40 -05:00
|
|
|
---
|
|
|
|
- name: Update Apt cache
|
2022-08-01 18:29:46 -05:00
|
|
|
become: true
|
2022-08-01 18:20:40 -05:00
|
|
|
ansible.builtin.apt:
|
|
|
|
update_cache: true
|
|
|
|
when: ansible_facts.os_family == 'Debian'
|
|
|
|
|
|
|
|
- name: Update DNF cache
|
2022-08-01 18:29:46 -05:00
|
|
|
become: true
|
2022-08-01 18:20:40 -05:00
|
|
|
ansible.builtin.dnf:
|
|
|
|
update_cache: true
|
|
|
|
when: ansible_facts.os_family == 'RedHat'
|
|
|
|
|
|
|
|
- name: Update Pacman cache
|
|
|
|
community.general.pacman:
|
|
|
|
update_cache: true
|
|
|
|
when: ansible_facts.distribution == 'Archlinux'
|