From c2f12babed64877bd952d23a98af40d1b627bda6 Mon Sep 17 00:00:00 2001 From: Hinrikus Wolf <hinrikus@fsmpi.rwth-aachen.de> Date: Sun, 1 Jul 2018 14:17:28 +0200 Subject: [PATCH] improve app-task s.t. a uwsgi-app can run without a database --- uwsgi-python/tasks/app.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/uwsgi-python/tasks/app.yml b/uwsgi-python/tasks/app.yml index eb0b519..868fe1b 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: -- GitLab