chore: fluent-bit zomboid, zomboid stats, home assistant, gregbot

This commit is contained in:
Bastian de Byl
2026-01-24 17:08:05 -05:00
parent 045eb0b5a7
commit bc26fcd1f9
9 changed files with 109 additions and 8 deletions

View File

@@ -52,6 +52,7 @@
- "{{ gregtime_path }}/logs:/app/logs"
- "{{ gregtime_path }}/data:/app/data"
- "{{ zomboid_path }}/data:/zomboid-logs:ro"
- "{{ podman_volumes }}/zomboid-stats.json:/app/data/zomboid-stats.json:ro"
- name: create systemd startup job for gregtime
include_tasks: podman/systemd-generate.yml

View File

@@ -64,7 +64,7 @@
- name: create zomboid stats file with correct permissions
become: true
ansible.builtin.file:
path: "{{ gregtime_path }}/data/zomboid-stats.json"
path: "{{ podman_volumes }}/zomboid-stats.json"
state: touch
owner: "{{ podman_user }}"
group: "{{ podman_user }}"
@@ -279,6 +279,28 @@
- zomboid_ini_stat.stat.exists
tags: zomboid-conf
# Firewall logging for player IP correlation
# Logs new UDP connections to Zomboid port for IP address tracking
- name: add firewall rule to log zomboid connections
become: true
ansible.builtin.command: >
firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0
-p udp --dport 16261 -m conntrack --ctstate NEW
-j LOG --log-prefix "ZOMBOID_CONN: " --log-level 4
register: firewall_result
changed_when: "'already' not in firewall_result.stderr"
failed_when: false
notify: restart firewalld
- name: add firewall rule to log zomboid connections (runtime)
become: true
ansible.builtin.command: >
firewall-cmd --direct --add-rule ipv4 filter INPUT 0
-p udp --dport 16261 -m conntrack --ctstate NEW
-j LOG --log-prefix "ZOMBOID_CONN: " --log-level 4
changed_when: false
failed_when: false
# World reset is now triggered via Discord bot -> systemd path unit
# See zomboid-world-reset.path and zomboid-world-reset.service
- name: enable zomboid world reset path unit

View File

@@ -73,7 +73,7 @@
- import_tasks: containers/debyltech/fulfillr.yml
vars:
image: git.debyl.io/debyltech/fulfillr:20260123.1704
image: git.debyl.io/debyltech/fulfillr:20260124.0411
tags: debyltech, fulfillr
- import_tasks: containers/debyltech/uptime-kuma.yml
@@ -92,7 +92,7 @@
- import_tasks: containers/home/gregtime.yml
vars:
image: localhost/greg-time-bot:2.0.11
image: localhost/greg-time-bot:3.0.1
tags: gregtime
- import_tasks: containers/home/zomboid.yml