summaryrefslogtreecommitdiff
path: root/roles/blackmagic-desktopvideo/tasks/main.yml
blob: 5283b628d309776922e460fa61749b7091f7f857 (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
---
- name: install apt https transport
  apt:
    name: apt-transport-https
    state: present

- name: add repository key
  apt_key:
    data: "{{ lookup('file', 'repo.asc') }}"
    state: present

- name: add repository entry
  apt_repository:
    repo: "deb https://{{ blackmagic_desktopvideo_apt.username }}:{{ blackmagic_desktopvideo_apt.password }}@build.spreadspace.org/ {{ ansible_distribution_release }} blackmagic"
    state: present
    filename: blackmagic
    mode: 0600

- name: install blackmagic desktopvideo
  apt:
    name: desktopvideo
    state: present

- 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 disabled and stopped
  systemd:
    name: DesktopVideoHelper.service
    daemon_reload: yes
    state: stopped
    enabled: no