Fix the condition for DB migration task
It seems that combining jinja2 template ansible code in when condition is considered unsafe. Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
parent
9ca4d43371
commit
107b9d5991
1 changed files with 2 additions and 2 deletions
|
@ -410,8 +410,8 @@
|
|||
become: true
|
||||
register: db_migration_output
|
||||
vars:
|
||||
pattern: "No migrations to apply"
|
||||
changed_when: not "{{ db_migration_output.stdout | regex_search(pattern) }}"
|
||||
pattern: "Applying"
|
||||
changed_when: "{{ db_migration_output.stdout | regex_search(pattern) }}"
|
||||
tags:
|
||||
- mailman
|
||||
- db
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue