Change opsis and opsis1 to another name
It would be good to use another name for opsis
and opsis1
on hosts, roles, site, etc, because we are using Capture box CU4K30 Asus. Something like capturepc
.
$ grep opsis * -R
inventory/hosts:opsis
inventory/hosts:[opsis]
inventory/hosts:opsis1
roles/voctomix/README.md: blackmagic_sources and opsis-ingest, but very generic.
roles/opsis/files/hdmi2usbmond.service:Description=Monitor opsis via hdmi2usbd
roles/opsis/README.md:# opsis
roles/opsis/README.md:* `tasks/opsis.yml` manages the tools to setup up and connect to the opsis.
roles/opsis/README.md: The first one listed will be used for the `opsis` command
roles/opsis/README.md: used to connect to the opsis board.
roles/opsis/defaults/main.yml:# The first one gets the "opsis" command
roles/opsis/tasks/main.yml:- ansible.builtin.include_tasks: opsis.yml
roles/opsis/tasks/opsis.yml:- name: Install opsis related packages
roles/opsis/tasks/opsis.yml:- name: Push the script to connect to the opsis
roles/opsis/tasks/opsis.yml: src: templates/opsis.j2
roles/opsis/tasks/opsis.yml: dest: /usr/local/bin/opsis
roles/opsis-ingest/files/videoteam-poke-at-opsis.service:Description=Poke at the opsis to make it do nice things
roles/opsis-ingest/files/videoteam-poke-at-opsis.service:ExecStart=/usr/local/bin/videoteam-poke-at-opsis
roles/opsis-ingest/files/videoteam-ingest.service:ExecStartPost=/usr/bin/systemctl restart videoteam-poke-at-opsis
roles/opsis-ingest/README.md:# opsis-ingest
roles/opsis-ingest/README.md:Depends on the `opsis` role.
roles/opsis-ingest/templates/videoteam-poke-at-opsis.j2: echo " -f <tty file>: set opsis tty file (default: /dev/hdmi2usb/by-num/all0/tty0)"
roles/opsis-ingest/tasks/main.yml:- name: Push videoteam-poke-at-opsis script
roles/opsis-ingest/tasks/main.yml: src: templates/videoteam-poke-at-opsis.j2
roles/opsis-ingest/tasks/main.yml: dest: /usr/local/bin/videoteam-poke-at-opsis
roles/opsis-ingest/tasks/main.yml:- name: Push systemd videoteam-poke-at-opsis.service
roles/opsis-ingest/tasks/main.yml: src: files/videoteam-poke-at-opsis.service
roles/opsis-ingest/tasks/main.yml: dest: /etc/systemd/system/videoteam-poke-at-opsis.service
roles/test-station/files/test-station.py: 'mpv', 'av://v4l2:/dev/hdmi2usb/by-num/opsis0/video',
roles/test-station/files/test-station.py:def input1_on(opsis):
roles/test-station/files/test-station.py: opsis_command(opsis, 'input1 on\r')
roles/test-station/files/test-station.py:def connect_outputs(opsis, input_):
roles/test-station/files/test-station.py: opsis_command(opsis, 'video_matrix connect {} output1\r'.format(input_))
roles/test-station/files/test-station.py: opsis_command(opsis, 'video_matrix connect {} encoder\r'.format(input_))
roles/test-station/files/test-station.py:def input1_status(opsis):
roles/test-station/files/test-station.py: status = opsis_command(opsis, 'status\r')
roles/test-station/files/test-station.py: opsis = opsis_open()
roles/test-station/files/test-station.py: input1_on(opsis)
roles/test-station/files/test-station.py: input1 = input1_status(opsis)
roles/test-station/files/test-station.py: connect_outputs(opsis, 'pattern')
roles/test-station/files/test-station.py: connect_outputs(opsis, 'input1')
roles/test-station/files/test-station.py:def opsis_command(opsis, string):
roles/test-station/files/test-station.py: opsis.write(character.encode('utf-8'))
roles/test-station/files/test-station.py: opsis.flush()
roles/test-station/files/test-station.py: return opsis.read(1024).decode('utf-8')
roles/test-station/files/test-station.py:def opsis_open():
roles/test-station/files/test-station.py: """Open the serial port to the opsis"""
roles/test-station/README.md:Depends on the `opsis` role.
site.yml:- hosts: opsis
site.yml: - opsis
site.yml: - opsis-ingest
site.yml: - opsis
tests/test-station.yml: - role: roles/opsis
tests/opsis.yml: - role: roles/opsis
tests/opsis.yml: - role: roles/opsis-ingest
tests/opsis.yml: - role: roles/opsis-ingest