--- - 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 # Ollama + SearXNG for FISTO AI responses OLLAMA_HOST: "http://127.0.0.1:11434" OLLAMA_MODEL: "dolphin-mistral" OLLAMA_FALLBACK_MODEL: "dolphin-phi" OLLAMA_NUM_PREDICT: "300" SEARXNG_URL: "http://127.0.0.1:8080" # Gemini API for @bot gemini 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" - "{{ podman_volumes }}/zomboid-stats.json:/app/data/zomboid-stats.json:ro" - name: create systemd startup job for gregtime include_tasks: podman/systemd-generate.yml vars: container_name: gregtime