yavdr-ansible/roles/serial-ir/templates/serial.conf.j2
Alexander Grothe f1709c8494 rename variable serial_device to serial_ir_device
and add an entry for the serial-ir role to the playbook (commented out
by default, so the user has to enable it if required)
2019-01-02 09:26:56 +01:00

8 lines
188 B
Django/Jinja

{% if serial_ir_device == "ttyS0" %}
#COM1 equivalent, /dev/ttyS0
/dev/ttyS0 uart none
{% elif serial_ir_device == "ttyS1" %}
#COM2 equivalent, /dev/ttyS1
/dev/ttyS1 uart none
{% endif %}