15 lines
413 B
YAML
15 lines
413 B
YAML
---
|
|
- name: Clean DNF cache
|
|
become: true
|
|
when: ansible_distribution == "Fedora" or (ansible_distribution == "CentOS" and ansible_distribution_major_version == "8")
|
|
command:
|
|
cmd: /usr/bin/dnf clean all
|
|
warn: false
|
|
|
|
- name: Clean YUM cache
|
|
become: true
|
|
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
|
|
command:
|
|
cmd: /usr/bin/yum clean all
|
|
warn: false
|