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