summaryrefslogtreecommitdiff
path: root/roles/streaming/blackmagic/mediaexpress/tasks/main.yml
blob: 3fa7f420f8888f63470dbca8181a15593fb3b74d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
- name: install blackmagic repo
  import_role:
    name: apt-repo/blackmagic

- name: generate apt pin file for blackmagic mediaexpress
  when: blackmagic_mediaexpress_version is defined
  copy:
    dest: "/etc/apt/preferences.d/mediaexpress.pref"
    content: |
      Package: mediaexpress
      Pin: version {{ blackmagic_mediaexpress_version }}
      Pin-Priority: 1001

- name: remove apt pin file for blackmagic mediaexpress
  when: blackmagic_mediaexpress_version is not defined
  file:
    path: "/etc/apt/preferences.d/mediaexpress.pref"
    state: absent

- name: install blackmagic mediaexpress
  apt:
    name: "mediaexpress{% if blackmagic_mediaexpress_version is defined %}={{ blackmagic_mediaexpress_version }}{% endif %}"
    state: present
    allow_downgrade: yes