From 9a95eecfd58b5b263ce7b41674d8a237dd86d211 Mon Sep 17 00:00:00 2001 From: Bastian de Byl Date: Fri, 23 Jan 2026 12:02:57 -0500 Subject: [PATCH] chore: zomboid stats for gregtime, updates --- .../roles/podman/tasks/containers/home/zomboid.yml | 11 +++++++++++ ansible/roles/podman/tasks/main.yml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ansible/roles/podman/tasks/containers/home/zomboid.yml b/ansible/roles/podman/tasks/containers/home/zomboid.yml index 81273c2..10ca3c6 100644 --- a/ansible/roles/podman/tasks/containers/home/zomboid.yml +++ b/ansible/roles/podman/tasks/containers/home/zomboid.yml @@ -61,6 +61,17 @@ group: "{{ podman_user }}" mode: '0755' +- name: create zomboid stats file with correct permissions + become: true + ansible.builtin.file: + path: "{{ gregtime_path }}/data/zomboid-stats.json" + state: touch + owner: "{{ podman_user }}" + group: "{{ podman_user }}" + mode: '0644' + modification_time: preserve + access_time: preserve + - name: deploy zomboid stats service unit become: true ansible.builtin.template: diff --git a/ansible/roles/podman/tasks/main.yml b/ansible/roles/podman/tasks/main.yml index 2d393cc..00bd623 100644 --- a/ansible/roles/podman/tasks/main.yml +++ b/ansible/roles/podman/tasks/main.yml @@ -92,7 +92,7 @@ - import_tasks: containers/home/gregtime.yml vars: - image: localhost/greg-time-bot:2.0.9 + image: localhost/greg-time-bot:2.0.11 tags: gregtime - import_tasks: containers/home/zomboid.yml