- fulfillr: 20260109.0522 -> 20260123.0109 - gregtime: 1.9.0 -> 2.0.8 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
60 lines
1.7 KiB
YAML
60 lines
1.7 KiB
YAML
---
|
|
- name: create gregtime host directory volumes
|
|
become: true
|
|
ansible.builtin.file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
owner: "{{ podman_subuid.stdout }}"
|
|
group: "{{ podman_user }}"
|
|
mode: 0755
|
|
notify: restorecon podman
|
|
loop:
|
|
- "{{ gregtime_path }}/logs"
|
|
- "{{ gregtime_path }}/data"
|
|
|
|
- name: unshare chown the gregtime volumes
|
|
become: true
|
|
become_user: "{{ podman_user }}"
|
|
changed_when: false
|
|
ansible.builtin.shell: |
|
|
podman unshare chown -R 1000:1000 {{ gregtime_path }}/logs
|
|
podman unshare chown -R 1000:1000 {{ gregtime_path }}/data
|
|
|
|
- name: flush handlers
|
|
ansible.builtin.meta: flush_handlers
|
|
|
|
- import_tasks: podman/podman-check.yml
|
|
vars:
|
|
container_name: gregtime
|
|
container_image: "{{ image }}"
|
|
|
|
- name: create gregtime container
|
|
become: true
|
|
become_user: "{{ podman_user }}"
|
|
containers.podman.podman_container:
|
|
name: gregtime
|
|
image: "{{ image }}"
|
|
restart_policy: on-failure:3
|
|
log_driver: journald
|
|
network:
|
|
- host
|
|
env:
|
|
TZ: America/New_York
|
|
# Gemini AI for @bot ask command
|
|
GEMINI_API_KEY: "{{ gemini_api_key }}"
|
|
# Zomboid RCON configuration for Discord restart command
|
|
ZOMBOID_RCON_HOST: "127.0.0.1"
|
|
ZOMBOID_RCON_PORT: "{{ zomboid_rcon_port }}"
|
|
ZOMBOID_RCON_PASSWORD: "{{ zomboid_admin_password }}"
|
|
# Path to zomboid log file for mod check results
|
|
ZOMBOID_LOG_FILE: "/zomboid-logs/server-console.txt"
|
|
volumes:
|
|
- "{{ gregtime_path }}/logs:/app/logs"
|
|
- "{{ gregtime_path }}/data:/app/data"
|
|
- "{{ zomboid_path }}/data:/zomboid-logs:ro"
|
|
|
|
- name: create systemd startup job for gregtime
|
|
include_tasks: podman/systemd-generate.yml
|
|
vars:
|
|
container_name: gregtime
|