roles/7dtd/tasks/main.yml: add lgsm dir + template tasks + bind mount for config-lgsm - deploys config each run

This commit is contained in:
2026-09-17 11:40:31 -06:00
parent 4de19ee70d
commit 055c8fcf8f
3 changed files with 42 additions and 0 deletions

View File

@@ -149,6 +149,14 @@ sdtd_pgid: 1000
sdtd_timezone: America/Denver
sdtd_backup: "NO"
sdtd_monitor: "YES"
## LinuxGSM config overrides (roles/7dtd/templates/sdtdserver.cfg.j2):
## - querymode=1: this server answers NO A2S query on 26900 (ServerVisibility=0 + SteamNetworking
## disabled), so the default gamedig-based monitor (querymode=2) always fails its query and
## force-restarts the HEALTHY server every ~5 min. Session-only check avoids that loop.
## - telnetpassword mirrors sdtd_telnet_password because LGSM's graceful stop reads
## ${telnetpassword} from its OWN cfg; the XML value is parsed into ${telnetpass} (different
## var) so without this the stop falls back to a hard tmux kill. Keep in sync below.
sdtd_lgsm_querymode: "1"
## CHANGE THESE before first deploy — the server is public and both passwords gate real access:
## sdtd_server_password is the join password players must enter; if it is empty the server has NO
## join password. sdtd_telnet_password guards the 8081/tcp admin console; if empty telnet only