fix(migration): fix the data paths for migration of dbs.
Signed-off-by: Rajesh Rajendran <rjshrjndrn@gmail.com>
This commit is contained in:
parent
08969cd831
commit
192d89f590
1 changed files with 6 additions and 1 deletions
|
|
@ -3,13 +3,15 @@
|
|||
gather_facts: false
|
||||
environment:
|
||||
KUBECONFIG: "{{ kubeconfig_path }}"
|
||||
vars:
|
||||
db_path: []
|
||||
tasks:
|
||||
- debug:
|
||||
var: migration_versions
|
||||
- block:
|
||||
- name: generating migration db paths
|
||||
set_fact:
|
||||
db_path: "{{dst_list | default([])}} + [ '{{playbook_dir}}/db/init_dbs/postgresql/{{ item }}/*.sql' ]"
|
||||
db_path: "{{ db_path }} + [ '{{playbook_dir}}/db/init_dbs/postgresql/{{ item }}/*.sql' ]"
|
||||
with_items: "{{ migration_versions.split(',') }}"
|
||||
- name: Migrate postgresql
|
||||
shell: |
|
||||
|
|
@ -23,6 +25,9 @@
|
|||
tags:
|
||||
- postgresql
|
||||
- block:
|
||||
- name: Resetting the db path
|
||||
set_fact:
|
||||
db_path: []
|
||||
- name: generating migration db paths
|
||||
set_fact:
|
||||
db_path: "{{dst_list | default([])}} + [ '{{ item[0] }}/*.sql' ]"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue