|
|
@ -128,10 +128,6 @@
|
|
|
|
-c
|
|
|
|
-c
|
|
|
|
'pgloader {{ matrix_postgres_db_migration_request.pgloader_options|default([])|join(' ') }} /in.db {{ matrix_postgres_db_migration_request.dst }}'
|
|
|
|
'pgloader {{ matrix_postgres_db_migration_request.pgloader_options|default([])|join(' ') }} /in.db {{ matrix_postgres_db_migration_request.dst }}'
|
|
|
|
|
|
|
|
|
|
|
|
- name: Archive {{ matrix_postgres_db_migration_request.engine_old }} database ({{ matrix_postgres_db_migration_request.src }} -> {{ matrix_postgres_db_migration_request.src }}.backup)
|
|
|
|
|
|
|
|
command:
|
|
|
|
|
|
|
|
cmd: "mv {{ matrix_postgres_db_migration_request.src }} {{ matrix_postgres_db_migration_request.src }}.backup"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- block:
|
|
|
|
- block:
|
|
|
|
# We can't use `{{ role_path }}` here, neither with `import_tasks`, nor with `include_tasks`,
|
|
|
|
# We can't use `{{ role_path }}` here, neither with `import_tasks`, nor with `include_tasks`,
|
|
|
|
# because it refers to the role that included this util, and not to the role this file belongs to.
|
|
|
|
# because it refers to the role that included this util, and not to the role this file belongs to.
|
|
|
@ -155,6 +151,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
when: "matrix_postgres_db_migration_request.additional_psql_statements_list|default([])|length > 0"
|
|
|
|
when: "matrix_postgres_db_migration_request.additional_psql_statements_list|default([])|length > 0"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Archive {{ matrix_postgres_db_migration_request.engine_old }} database ({{ matrix_postgres_db_migration_request.src }} -> {{ matrix_postgres_db_migration_request.src }}.backup)
|
|
|
|
|
|
|
|
command:
|
|
|
|
|
|
|
|
cmd: "mv {{ matrix_postgres_db_migration_request.src }} {{ matrix_postgres_db_migration_request.src }}.backup"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Inject result
|
|
|
|
- name: Inject result
|
|
|
|
set_fact:
|
|
|
|
set_fact:
|
|
|
|
matrix_playbook_runtime_results: |
|
|
|
|
matrix_playbook_runtime_results: |
|
|
|
|