diff --git a/playbooks/02c-services-deploy.yml b/playbooks/02c-services-deploy.yml index 8f6ce8e..9e5b002 100644 --- a/playbooks/02c-services-deploy.yml +++ b/playbooks/02c-services-deploy.yml @@ -2,6 +2,10 @@ - name: "Deploy services" hosts: the_nine_worlds + vars: + versions: + database: + postgres: "15.0" tasks: - import_tasks: tasks/services/c-deploy/00-hosts.yml - include_tasks: tasks/services/c-deploy/01-service-deploy.yml diff --git a/playbooks/filesystem/yggdrasil/var/lib/yggdrasil/home/pod-database/.config/systemd/user/container-database-postgres.service.j2 b/playbooks/filesystem/yggdrasil/var/lib/yggdrasil/home/pod-database/.config/systemd/user/container-database-postgres.service.j2 index 4f0259c..db8de81 100644 --- a/playbooks/filesystem/yggdrasil/var/lib/yggdrasil/home/pod-database/.config/systemd/user/container-database-postgres.service.j2 +++ b/playbooks/filesystem/yggdrasil/var/lib/yggdrasil/home/pod-database/.config/systemd/user/container-database-postgres.service.j2 @@ -27,7 +27,7 @@ ExecStart=/usr/bin/podman run \ -e POSTGRES_INITDB_WALDIR=/var/lib/postgresql-wal \ -v /var/lib/yggdrasil/data/pod-database/data/_data:/var/lib/postgresql/data \ --name=pod-database-postgres \ - docker.io/library/postgres:15.0 + docker.io/library/postgres:{{ versions.database.postgres }} ExecStop=/usr/bin/podman stop --ignore --cidfile %t/container-database-postgres.ctr-id -t 10 ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/container-database-postgres.ctr-id PIDFile=%t/container-database-postgres.pid