Add versioning using variables
This commit is contained in:
parent
07dd795a68
commit
be8c9b9a75
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user