diff --git a/uwsgi-python/tasks/app.yml b/uwsgi-python/tasks/app.yml index eb0b5194d2fa756d44b12b3608aa9b0074145715..868fe1b3a1102f02373ee5348d3fac7c37e886b2 100644 --- a/uwsgi-python/tasks/app.yml +++ b/uwsgi-python/tasks/app.yml @@ -42,14 +42,15 @@ - "{{ app.app }}" - "{{ app.instance }}" -- include: sqlite.yml - when: app.db == "sqlite" - -- include: mysql.yml - when: app.db == "mysql" - -- include: postgres.yml - when: app.db == "postgres" +- block: + - include: sqlite.yml + when: app_db_type == "sqlite" + - include: mysql.yml + when: app_db_type == "mysql" + + - include: postgres.yml + when: app_db_type == "postgres" + when: app_db_type is defined - name: ensure we have a group group: