blob: 3ef7231e00591d20c5ddbd6b0c2c6c3962d11182 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
---
- name: install blackmagic repo
import_role:
name: apt-repo/blackmagic
- name: install xauth package for SSH X-Forwarding to work
when: blackmagic_desktopvideo_include_gui
apt:
name: xauth
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 packages
apt:
name: "{{ blackmagic_desktopvideo_packages | product(blackmagic_desktopvideo_version is defined | ternary(['=' + (blackmagic_desktopvideo_version | default(''))], [''])) | map('join') }}"
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 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:
name: /etc/systemd/system/DesktopVideoHelper.service.d
state: directory
- name: install improved kill mode for DesktopVideoHelper (1/2)
copy:
src: DesktopVideoHelper-killmode.conf
dest: /etc/systemd/system/DesktopVideoHelper.service.d/killmode.conf
notify: reload systemd
- name: make sure DesktopVideoHelper is enabled and started
systemd:
name: DesktopVideoHelper.service
daemon_reload: yes
state: started
enabled: yes
|