role-ara-api: only set up or restart a wsgi server if there's one defined

Change-Id: I28fc9f6578f19994c125a9c63fd5afbe926e31b0
This commit is contained in:
David Moreau Simard 2019-03-26 13:27:05 -04:00
parent c291f57e3a
commit a4a3a0274b
No known key found for this signature in database
GPG Key ID: CBEB466764A9E621
2 changed files with 4 additions and 1 deletions

View File

@ -21,4 +21,6 @@
service: service:
name: ara-api name: ara-api
state: restarted state: restarted
when: ara_api_service_enabled is not changed when:
- ara_api_wsgi_server is not none
- ara_api_service_enabled is not changed

View File

@ -36,6 +36,7 @@
- name: Include installation of the WSGI backend server - name: Include installation of the WSGI backend server
include_tasks: "wsgi_server/{{ ara_api_wsgi_server }}.yaml" include_tasks: "wsgi_server/{{ ara_api_wsgi_server }}.yaml"
when: ara_api_wsgi_server is not none
- name: Include installation of the frontend server - name: Include installation of the frontend server
include_role: include_role: