Files
vms/ansible/roles/cleanup/tasks/CentOS.yml
T

9 lines
196 B
YAML

- name: clean yum history
become: true
ansible.builtin.shell: |-
set -e
yum --enablerepo=epel clean all
yum history new
truncate -c -s 0 /var/log/yum.log
changed_when: false