--- - name: install blackmagic repo import_role: name: apt-repo/blackmagic - name: install blackmagic mediaexpress apt: name: "mediaexpress{% if blackmagic_mediaexpress_version is defined %}={{ blackmagic_mediaexpress_version }}{% endif %}" state: present force: yes ## TODO: remove force once the following changes are available ## https://github.com/ansible/ansible/pull/73629 or https://github.com/ansible/ansible/pull/72562 ## https://github.com/ansible/ansible/pull/74852 - name: disable automatic upgrades for mediaexpress when: blackmagic_mediaexpress_version is defined dpkg_selections: name: mediaexpress selection: hold