mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-06 02:37:31 +01:00
Minor improvements to the Postgres-upgrade tasks
This commit is contained in:
parent
2fa4ced6a7
commit
62d1b13c91
@ -79,7 +79,7 @@
|
||||
command: |
|
||||
/usr/bin/docker run --rm --name matrix-postgres-dump \
|
||||
--link matrix-postgres:postgres \
|
||||
--env-file=/matrix/environment-variables/env-postgres-pgsql-docker \
|
||||
--env-file={{ matrix_environment_variables_data_path }}/env-postgres-pgsql-docker \
|
||||
-v {{ postgres_dump_dir }}:/out \
|
||||
{{ docker_postgres_image_to_use }} pg_dump -h postgres {{ matrix_postgres_db_name }} -f /out/{{ postgres_dump_name }}
|
||||
|
||||
@ -107,9 +107,9 @@
|
||||
command: |
|
||||
/usr/bin/docker run --rm --name matrix-postgres-import \
|
||||
--link matrix-postgres:postgres \
|
||||
--env-file=/matrix/environment-variables/env-postgres-pgsql-docker \
|
||||
--env-file={{ matrix_environment_variables_data_path }}/env-postgres-pgsql-docker \
|
||||
-v {{ postgres_dump_dir }}:/in:ro \
|
||||
{{ docker_postgres_image_to_use }} psql -h postgres -f /in/{{ postgres_dump_name }}
|
||||
{{ docker_postgres_image_latest }} psql -h postgres -f /in/{{ postgres_dump_name }}
|
||||
|
||||
- name: Delete Postgres database dump file
|
||||
file:
|
||||
|
Loading…
Reference in New Issue
Block a user