Add basic rttys role

This commit is contained in:
KemoNine 2020-08-09 15:45:32 -04:00
parent fa9c652f4b
commit d0b6cb23f5
5 changed files with 46 additions and 3 deletions

View file

@ -15,6 +15,5 @@ monit_filesystems:
- { name: "picturesfs", path: "/opt/pictures", alert: "80%" }
monit_web_user: "admin"
monit_web_pasword: "password"
rtty_server: true
rtty_user: "admin"
rtty_password: "password"
rttys_http_username: "admin"
rttys_http_pass: "password"

View file

@ -0,0 +1,4 @@
---
rttys_http_username: "admin"
rttys_http_pass: "password"

View file

@ -0,0 +1,3 @@
---
- name: restart rttys
command: /usr/bin/s6-svc -r /var/run/s6/services/rttys

View file

@ -0,0 +1,15 @@
---
- name: Gather instance facts
setup:
- block:
- name: Setup rttys
template:
src: rttys.json
dest: "/opt/rtty/rttys.json"
owner: root
group: root
mode: 0600
notify:
- restart rttys
tags:
- rttys-config

View file

@ -0,0 +1,22 @@
#addr-dev: :5912
#addr-user: :5913
# Auth for http
http-username: {{ rttys_http_username }}
http-password: {{ rttys_http_pass }}
#ssl-cert: /etc/rttys/rttys.crt
#ssl-key: /etc/rttys/rttys.key
#base-url: /
#token: a1d4cdb1a3cd6a0e94aa3599afcddcf5
# font-size: 16
# No login required to connect device.
# Values can be device IDs separated by spaces,
# or a "*" indicates that all devices do not require login
# http://localhost:5913/connect/rtty1
#white-list: "*"
#white-list: rtty1 rtty2