Skip to content
Snippets Groups Projects
Commit 84008b29 authored by Lars Beckers's avatar Lars Beckers
Browse files

uwsgi/static: fix var testing

parent b60da936
No related branches found
No related tags found
No related merge requests found
......@@ -9,9 +9,9 @@
mode: '0600'
when:
- item.deploy_key is defined
- item.deploy_key|bool
- item.deploy_key|string != '' # noqa 602
- item.deploy_key_name is defined
- item.deploy_key_name|bool
- item.deploy_key_name|string != '' # noqa 602
with_items: "{{ static_websites }}"
tags:
- static-website
......
......@@ -131,7 +131,7 @@
mode: '0600'
when:
- app_deploy_key is defined
- app_deploy_key|bool
- app_deploy_key|string != '' # noqa 602
- (app_git_pip is not defined) or (not app_git_pip)
tags:
- uwsgi-app
......@@ -152,7 +152,7 @@
- "restart uwsgi instance {{ app.instance }}"
when:
- app_deploy_key is defined
- app_deploy_key|bool
- app_deploy_key|string != '' # noqa 602
- (app_git_pip is not defined) or (not app_git_pip)
register: git
tags:
......@@ -170,7 +170,7 @@
notify:
- "restart uwsgi instance {{ app.instance }}"
when:
- (app_deploy_key is not defined) or (not app_deploy_key|bool)
- (app_deploy_key is not defined) or (not app_deploy_key|string != '') # noqa 602
- (app_git_pip is not defined) or (not app_git_pip)
register: git
tags:
......@@ -188,7 +188,7 @@
- "restart uwsgi instance {{ app.instance }}"
when:
- app_requirements_file is defined
- app_requirements_file|bool
- app_requirements_file|string != '' # noqa 602
- (app_git_pip is not defined) or (not app_git_pip)
tags:
- uwsgi-app
......@@ -223,7 +223,7 @@
- "restart uwsgi instance {{ app.instance }}"
when:
- app_config_file is defined
- app_config_file|bool
- app_config_file|string != '' # noqa 602
tags:
- uwsgi-app
- "{{ app.app }}"
......
......@@ -39,7 +39,7 @@
owner: "{{ protokolle_user }}"
group: "{{ protokolle_group }}"
mode: '0644'
when: protokolle_local_templates|default('')|bool
when: protokolle_local_templates|string != '' # noqa 602
notify:
- "restart uwsgi instance {{app.instance}}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment