From cdf03bc9b77e67c38cdf1e42d15408c6412726be Mon Sep 17 00:00:00 2001 From: Jose Eduardo Date: Sat, 17 Dec 2016 13:26:29 +0000 Subject: [PATCH] Allow to disable service manager detection --- defaults/main.yml | 1 + tasks/wsgi.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 68222b7..b3d94f1 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -23,6 +23,7 @@ wsgi_virtualenv: "{{deploy_dir|default('/opt/wsgi')}}/env" wsgi_virtualenv_python: python wsgi_service: upstart +wsgi_service_autodetect: true # Try to detect wsgi_service # UWSGI default options (can be redefined for each wsgi app) wsgi_uwsgi_enable_threads: no diff --git a/tasks/wsgi.yml b/tasks/wsgi.yml index ee783f9..7d58a49 100644 --- a/tasks/wsgi.yml +++ b/tasks/wsgi.yml @@ -1,6 +1,7 @@ --- - include_vars: "{{ansible_distribution}}.yml" + when: wsgi_service_autodetect - include: dirs.yml tags: [wsgi, wsgi-dirs]