--- - 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 template: src: config.ini.j2 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