Made SQL migration task aware of output

Change-Id: I2bc9e4bc508c3cd6c873f12adf09a26f4c9ab7e2
This commit is contained in:
Jeffrey van Pelt 2021-01-05 22:04:08 +01:00 committed by David Moreau Simard
parent 6036126977
commit 3d24adbcd4
3 changed files with 5 additions and 0 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"