mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-22 04:34:00 +00:00
Minor improvements to the Postgres-upgrade tasks
This commit is contained in:
parent
2fa4ced6a7
commit
62d1b13c91
@ -79,7 +79,7 @@
|
|||||||
command: |
|
command: |
|
||||||
/usr/bin/docker run --rm --name matrix-postgres-dump \
|
/usr/bin/docker run --rm --name matrix-postgres-dump \
|
||||||
--link matrix-postgres:postgres \
|
--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 \
|
-v {{ postgres_dump_dir }}:/out \
|
||||||
{{ docker_postgres_image_to_use }} pg_dump -h postgres {{ matrix_postgres_db_name }} -f /out/{{ postgres_dump_name }}
|
{{ docker_postgres_image_to_use }} pg_dump -h postgres {{ matrix_postgres_db_name }} -f /out/{{ postgres_dump_name }}
|
||||||
|
|
||||||
@ -107,9 +107,9 @@
|
|||||||
command: |
|
command: |
|
||||||
/usr/bin/docker run --rm --name matrix-postgres-import \
|
/usr/bin/docker run --rm --name matrix-postgres-import \
|
||||||
--link matrix-postgres:postgres \
|
--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 \
|
-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
|
- name: Delete Postgres database dump file
|
||||||
file:
|
file:
|
||||||
|
Loading…
Reference in New Issue
Block a user