16 lines
365 B
YAML
16 lines
365 B
YAML
|
---
|
||
|
- name: Update Apt cache
|
||
|
ansible.builtin.apt:
|
||
|
update_cache: true
|
||
|
when: ansible_facts.os_family == 'Debian'
|
||
|
|
||
|
- name: Update DNF cache
|
||
|
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'
|