--- - name: Run apt update become: true ansible.builtin.apt: update_cache: true cache_valid_time: 3600 when: - ansible_pkg_mgr == "apt"