diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-08-19 23:03:18 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-08-19 23:03:18 +0200 |
commit | 07609dd3ddb1bb1383b8ddbecc50bacd2e649918 (patch) | |
tree | 0ef9cea16a64c2b00560d0a21999d72b03995f62 /roles/streaming/blackmagic | |
parent | thetys: harmonize deployment (diff) |
move blackmagic desktopvideo role
Diffstat (limited to 'roles/streaming/blackmagic')
3 files changed, 34 insertions, 0 deletions
diff --git a/roles/streaming/blackmagic/desktopvideo/files/DesktopVideoHelper-killmode.conf b/roles/streaming/blackmagic/desktopvideo/files/DesktopVideoHelper-killmode.conf new file mode 100644 index 00000000..6d61360b --- /dev/null +++ b/roles/streaming/blackmagic/desktopvideo/files/DesktopVideoHelper-killmode.conf @@ -0,0 +1,3 @@ +[Service] +TimeoutStopSec=5s +KillMode=mixed diff --git a/roles/streaming/blackmagic/desktopvideo/handlers/main.yml b/roles/streaming/blackmagic/desktopvideo/handlers/main.yml new file mode 100644 index 00000000..bb7fde2b --- /dev/null +++ b/roles/streaming/blackmagic/desktopvideo/handlers/main.yml @@ -0,0 +1,4 @@ +--- +- name: reload systemd + systemd: + daemon_reload: yes diff --git a/roles/streaming/blackmagic/desktopvideo/tasks/main.yml b/roles/streaming/blackmagic/desktopvideo/tasks/main.yml new file mode 100644 index 00000000..cd1de94c --- /dev/null +++ b/roles/streaming/blackmagic/desktopvideo/tasks/main.yml @@ -0,0 +1,27 @@ +--- +- name: install blackmagic repo + include_role: + name: apt-repo/blackmagic + +- 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 |