Files
deploy_home/ansible/roles/podman/tasks/containers/home/gregtime.yml
T
Bastian de Byl 7d4a398bba Drop self-hosted AI (Ollama + SearXNG); gregtime switches to xAI Grok
The Ollama role and SearXNG container backed FISTO AI responses in the
greg-time Discord bot. greg-time 3.9.6 drops both (plus the Gemini path)
in favor of a single xAI Grok backend, so:

- remove the ollama role and its wiring in deploy_home.yml
- remove the searxng container task, template, and searxng_path default
- gregtime: swap OLLAMA_*/SEARXNG_URL/GEMINI_API_KEY env for XAI_API_KEY,
  bump image 3.6.5 -> 3.9.6
- vault: add xai_api_key, drop gemini_api_key

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-14 10:19:45 -04:00

61 lines
1.8 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
# xAI Grok API — the bot's sole AI backend
XAI_API_KEY: "{{ xai_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