2019-01-02 12:08:37 +01:00
|
|
|
{{ ansible_managed | comment }}
|
|
|
|
|
2019-01-02 09:26:56 +01:00
|
|
|
{% if serial_ir_device == "ttyS0" %}
|
2019-01-02 12:08:37 +01:00
|
|
|
#COM1 equivalent, /dev/ttyS0
|
2019-01-01 23:48:31 +01:00
|
|
|
options serial_ir irq=4 io=0x3f8
|
2019-01-02 09:26:56 +01:00
|
|
|
{% elif serial_ir_device == "ttyS1" %}
|
2019-01-01 23:48:31 +01:00
|
|
|
#COM2 equivalent, /dev/ttyS1
|
|
|
|
options serial_ir irq=3 io=0x2f8
|
|
|
|
{% endif %}
|
2019-01-02 12:08:37 +01:00
|
|
|
{% if serial_ir_device in ("ttyS0", "ttyS1") %}
|
2019-01-02 09:26:56 +01:00
|
|
|
install serial_ir setserial /dev/{{serial_ir_device}} uart none; /sbin/modprobe --ignore-install serial_ir
|
2019-01-02 12:08:37 +01:00
|
|
|
{% endif %}
|