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