--- # tasks file for update - name: Update packages on all Debian/Ubuntu systems ansible.builtin.apt: upgrade: dist update_cache: true cache_valid_time: 3600 when: - ansible_facts["os_family"] == "Debian" - name: Update packages on Fedora systems ansible.builtin.dnf: name: "*" state: latest when: - ansible_facts["distribution"] == "Fedora"