--- - name: Update apt cache become: true ansible.builtin.apt: clean: true update_cache: true register: _pre_update_apt_cache until: _pre_update_apt_cache is succeeded when: - ansible_pkg_mgr == "apt" - name: Install latest ffmpeg from unstable become: true ansible.builtin.apt: name: ['ffmpeg'] state: latest # noqa: ansible-lint package-latest