Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions roles/opsis/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# - cu
# - flterm
# - hdmi2usbd
# - minicom
serial_terminal:
- cu

Expand Down
2 changes: 2 additions & 0 deletions roles/opsis/files/minirc.dfl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pu port /dev/hdmi2usb/by-num/all0/tty
pu addcarreturn Yes
6 changes: 6 additions & 0 deletions roles/opsis/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
- systemctl daemon-reload
- systemctl enable videoteam-ingest

- name: configure minicom for hdmi2usb
copy:
src: files/minirc.dfl
dest: /home/{{ user_name }}/.minirc.dfl
when: "'minicom' in serial_terminal"

- name: push systemd hdmi2usbd.service
copy:
src: files/hdmi2usbd.service
Expand Down
2 changes: 2 additions & 0 deletions roles/opsis/templates/opsis.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ exec cu -l /dev/hdmi2usb/by-num/all0/tty -s 115200
exec flterm --port /dev/hdmi2usb/by-num/all0/tty --speed 115200
{% elif serial_terminal[0] == 'hdmi2usbd' %}
exec nc localhost 8501
{% elif serial_terminal[0] == 'minicom' %}
exec minicom
{% endif %}