diff --git a/roles/wsgi_website/tasks/main.yml b/roles/wsgi_website/tasks/main.yml index 4f07bcaa56431d3bda4fd3c7e1c4feadc958e0ea..1510ce6f6e601c20449c1184c76e138e91da2510 100644 --- a/roles/wsgi_website/tasks/main.yml +++ b/roles/wsgi_website/tasks/main.yml @@ -94,7 +94,7 @@ file: path: "{{ home }}/virtualenv" state: absent - when: "current_python_version.rc == 0 and not current_python_version.stdout.startswith(python_version | string)" + when: "current_python_version.rc == 0 and not current_python_version.stdout.startswith('3')" notify: - Restart WSGI services