- name: Update RPM systems with dnf hosts: "{{ hosts | default('all') }}" become: yes gather_facts: false tasks: - name: Update system using dnf dnf: name: "*" state: latest update_cache: yes