Skip to content
Snippets Groups Projects

Unify uwsgi python

Merged Hinrikus Wolf requested to merge unify_uwsgi_python into master
8 files
+ 54
9
Compare changes
  • Side-by-side
  • Inline

Files

---
#https://github.com/ansible/ansible/issues/42983
- name: ensure there exists a .ansible folder
file:
path: "{{app_path}}/.ansible"
state: directory
owner: "{{app_user}}"
group: "{{app_group}}"
- name: ensure data model upgrades are applied
command: "{{app_path}}/bin/python {{app_path}}/server.py db upgrade"
command: "{{app_venv}}/bin/python {{app_path}}/lipclms.py db upgrade"
args:
chdir: "{{app_path}}"
become: yes
become_user: "{{app_user}}"
notify:
- "restart uwsgi instance {{app.instance}}"
- name: ensure the folder from above is not present anymore
file:
path: "{{app_path}}/.ansible"
state: absent
Loading