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

uwsgi: change state to latest for virtualenvs

In all other cases we prefer idempotence in Ansible roles. But here,
this is actually the safe way to go. This change keeps the environment
up-to-date with changes in the application, but is also idempotent in
the case of stable software which froze its requirements to specific
versions as recommended. Running any updates using this role also
ensures that e.g. database migrations are run properly.
parent 1c2ab725
No related branches found
No related tags found
No related merge requests found
......@@ -194,6 +194,7 @@
requirements: "{{ app_path }}/{{ app_requirements_file }}"
virtualenv: "{{ app_venv }}"
virtualenv_python: "python{{ app_python_version }}"
state: latest
notify:
- "restart uwsgi instance {{ app.instance }}"
when:
......@@ -210,6 +211,7 @@
name: "git+{{ app_git_url }}@{{ app_git_version }}{{ app_git_pip_query|default('') }}"
virtualenv: "{{ app_venv }}"
virtualenv_python: "python{{ app_python_version }}"
state: latest
notify:
- "restart uwsgi instance {{ app.instance }}"
when:
......
......@@ -42,6 +42,7 @@
name: "{{ pretix_plugins }}"
virtualenv: "{{ app_venv }}"
virtualenv_python: "python{{ app_python_version }}"
state: latest
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