ctucx.git: ansible-configs

My personal ansible roles and playbooks [deprecated in favor of nixos]

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
#
# !!! This file is managed by Ansible !!!
#

[Unit]
Description=Serial to TCP gateway.
Requires=network.target
After=network-online.target
Wants=network-online.target

[Service]
Environment=SERIAL_DEVICE=/dev/{{ services.serial2tcp.device }}
Environment=PORT={{ services.serial2tcp.port | default(2342) }}
ExecStartPre=stty -F /dev/{{ services.serial2tcp.device }} raw -echo -echoe -echok speed {{ services.serial2tcp.baudrate | default(9600) }}
ExecStart=/usr/bin/serial2tcp
Restart=on-failure
RestartSec=1
StandardOutput=journal
StandardError=journa

[Install]
WantedBy=multi-user.target