Checkpoint

This commit is contained in:
Jonathan Cremin 2021-04-11 16:00:07 +01:00
parent e17f84ad8a
commit 1e03c32201
32 changed files with 556 additions and 298 deletions

View file

@ -0,0 +1,41 @@
---
- name: Fetch Virtualhere binary
get_url:
url: https://virtualhere.com/sites/default/files/usbserver/vhusbdx86_64
dest: /usr/local/bin/vhusbd
mode: 0755
become: yes
- name: Create /usr/local/etc/virtualhere/
file:
dest: /usr/local/etc/virtualhere/
mode: '0755'
owner: root
group: root
state: directory
become: yes
- name: Create Virtualhere config
copy:
src: config.ini
mode: "0644"
dest: /usr/local/etc/virtualhere/config.ini
become: yes
- name: Create Virtualhere systemd service
copy:
src: virtualhere.service
mode: "0644"
dest: /etc/systemd/system/virtualhere.service
notify: enable virtualhere
become: yes
# For 4K Webcam throughput
- name: Increase memory available to USB
lineinfile:
path: /etc/default/grub
regexp: '^(.*)rhgb quiet"$'
line: '\1rhgb quiet usbcore.usbfs_memory_mb=1000"'
backrefs: yes
become: yes