Checkpoint
This commit is contained in:
parent
e17f84ad8a
commit
1e03c32201
32 changed files with 556 additions and 298 deletions
4
roles/virtualhere/files/config.ini
Normal file
4
roles/virtualhere/files/config.ini
Normal file
|
@ -0,0 +1,4 @@
|
|||
It=1612256810
|
||||
EasyFindId=NnL1bKU8y9cMhUFhNzxNQA
|
||||
EasyFindPin=2vTMJN
|
||||
License=100426f0-7de4-ae8e-e7e1-244bfec823db,0,MCACDi8rVnEa6oduIXJBZNAEAg5o/Fp6R7Njxf5D4uN0Bw==
|
8
roles/virtualhere/files/virtualhere.service
Normal file
8
roles/virtualhere/files/virtualhere.service
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description=VirtualHere Server
|
||||
After=network.target
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/local/bin/vhusbd -b -c /usr/local/etc/virtualhere/config.ini
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
8
roles/virtualhere/handlers/main.yml
Normal file
8
roles/virtualhere/handlers/main.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
- name: enable virtualhere
|
||||
service:
|
||||
name: virtualhere
|
||||
state: started
|
||||
enabled: yes
|
||||
become: yes
|
||||
|
41
roles/virtualhere/tasks/main.yml
Normal file
41
roles/virtualhere/tasks/main.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue