Made SQL migration task aware of output
Change-Id: I2bc9e4bc508c3cd6c873f12adf09a26f4c9ab7e2
This commit is contained in:
parent
6036126977
commit
3d24adbcd4
@ -52,3 +52,4 @@
|
|||||||
retries: 3
|
retries: 3
|
||||||
delay: 5
|
delay: 5
|
||||||
until: _ara_sql_migrations is succeeded
|
until: _ara_sql_migrations is succeeded
|
||||||
|
changed_when: "'No migrations to apply' not in _ara_sql_migrations.stdout"
|
||||||
|
@ -52,3 +52,5 @@
|
|||||||
retries: 3
|
retries: 3
|
||||||
delay: 5
|
delay: 5
|
||||||
until: _ara_sql_migrations is succeeded
|
until: _ara_sql_migrations is succeeded
|
||||||
|
register: _ara_sql_migrations
|
||||||
|
changed_when: "'No migrations to apply' not in _ara_sql_migrations.stdout"
|
||||||
|
@ -28,3 +28,5 @@
|
|||||||
ARA_SETTINGS: "{{ ara_api_settings }}"
|
ARA_SETTINGS: "{{ ara_api_settings }}"
|
||||||
PATH: "{{ path_with_virtualenv }}"
|
PATH: "{{ path_with_virtualenv }}"
|
||||||
command: ara-manage migrate
|
command: ara-manage migrate
|
||||||
|
register: _ara_sql_migrations
|
||||||
|
changed_when: "'No migrations to apply' not in _ara_sql_migrations.stdout"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user