summaryrefslogtreecommitdiff
path: root/roles/streaming/blackmagic
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-01-01 02:34:50 +0100
committerChristian Pointner <equinox@spreadspace.org>2021-01-01 02:34:50 +0100
commit8a70e1f5e02e9f18692c040eefec2b0e051695da (patch)
tree172d25a22af2a6a1b48efbcee94ad2dd2d355fe5 /roles/streaming/blackmagic
parentws/minet: fix connection script permissions (diff)
make blackmagic package versions configurable
Diffstat (limited to 'roles/streaming/blackmagic')
-rw-r--r--roles/streaming/blackmagic/desktopvideo/defaults/main.yml2
-rw-r--r--roles/streaming/blackmagic/desktopvideo/tasks/main.yml20
-rw-r--r--roles/streaming/blackmagic/mediaexpress/defaults/main.yml2
-rw-r--r--roles/streaming/blackmagic/mediaexpress/tasks/main.yml9
4 files changed, 25 insertions, 8 deletions
diff --git a/roles/streaming/blackmagic/desktopvideo/defaults/main.yml b/roles/streaming/blackmagic/desktopvideo/defaults/main.yml
index eddfbb61..ba6a87ab 100644
--- a/roles/streaming/blackmagic/desktopvideo/defaults/main.yml
+++ b/roles/streaming/blackmagic/desktopvideo/defaults/main.yml
@@ -1,2 +1,4 @@
---
+# blackmagic_desktopvideo_version:
+
blackmagic_desktopvideo_include_gui: no
diff --git a/roles/streaming/blackmagic/desktopvideo/tasks/main.yml b/roles/streaming/blackmagic/desktopvideo/tasks/main.yml
index d674b54e..de0259a0 100644
--- a/roles/streaming/blackmagic/desktopvideo/tasks/main.yml
+++ b/roles/streaming/blackmagic/desktopvideo/tasks/main.yml
@@ -3,16 +3,22 @@
import_role:
name: apt-repo/blackmagic
-- name: install blackmagic desktopvideo
- apt:
- name: desktopvideo
- state: present
+- name: generate list of desktopvideo packages
+ set_fact:
+ blackmagic_desktopvideo_packages: "{{ ['desktopvideo'] | union(blackmagic_desktopvideo_include_gui | ternary(['desktopvideo-gui'], [])) }}"
-- name: install blackmagic desktopvideo GUI
- when: blackmagic_desktopvideo_include_gui
+- name: install blackmagic desktopvideo packages
apt:
- name: desktopvideo-gui
+ name: "{{ blackmagic_desktopvideo_packages | product(blackmagic_desktopvideo_version is defined | ternary(['=' + (blackmagic_desktopvideo_version | default(''))], [''])) | map('join') }}"
state: present
+ force: yes
+
+- name: disable automatic upgrades for desktopvideo packages
+ when: blackmagic_desktopvideo_version is defined
+ loop: "{{ blackmagic_desktopvideo_packages }}"
+ dpkg_selections:
+ name: "{{ item }}"
+ selection: hold
- name: install improved kill mode for DesktopVideoHelper (1/2)
file:
diff --git a/roles/streaming/blackmagic/mediaexpress/defaults/main.yml b/roles/streaming/blackmagic/mediaexpress/defaults/main.yml
new file mode 100644
index 00000000..4f0cd2b6
--- /dev/null
+++ b/roles/streaming/blackmagic/mediaexpress/defaults/main.yml
@@ -0,0 +1,2 @@
+---
+# blackmagic_mediaexpress_version:
diff --git a/roles/streaming/blackmagic/mediaexpress/tasks/main.yml b/roles/streaming/blackmagic/mediaexpress/tasks/main.yml
index 4376fdc3..15e4b4d9 100644
--- a/roles/streaming/blackmagic/mediaexpress/tasks/main.yml
+++ b/roles/streaming/blackmagic/mediaexpress/tasks/main.yml
@@ -5,5 +5,12 @@
- name: install blackmagic mediaexpress
apt:
- name: mediaexpress
+ name: "mediaexpress{% if blackmagic_mediaexpress_version is defined %}={{ blackmagic_mediaexpress_version }}{% endif %}"
state: present
+ force: yes
+
+- name: disable automatic upgrades for mediaexpress
+ when: blackmagic_mediaexpress_version is defined
+ dpkg_selections:
+ name: mediaexpress
+ selection: hold