--- - name: update the system ansible.builtin.dnf: name: "*" state: latest - name: Autoremove ansible.builtin.dnf: autoremove: true