Run uwsgi tasks only when uwsgi_services defined

Change-Id: I000b8a4ae4c8ee0c9ce44e520e0c74cdd0f4afea
This commit is contained in:
Dmitriy Rabotyagov 2020-01-30 11:12:08 +02:00
parent b4db9513d9
commit b2a0db4b47
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@
- name: Gather variables for each operating system
include_vars: "{{ item }}"
when: uwsgi_services
with_first_found:
- "{{ ansible_distribution | lower }}.yml"
- "{{ ansible_os_family | lower }}.yml"
@ -23,13 +24,16 @@
- name: Gather variables for installation method
include_vars: "{{ uwsgi_install_method }}_install.yml"
when: uwsgi_services
tags:
- always
- import_tasks: uwsgi_install.yml
when: uwsgi_services
tags:
- uwsgi-install
- import_tasks: uwsgi_post_install.yml
when: uwsgi_services
tags:
- uwsgi-config