Skip to content
Snippets Groups Projects

WIP: add acmebot role

Closed Lars Beckers requested to merge acmebot into master
1 file
+ 23
0
Compare changes
  • Side-by-side
  • Inline
---
# 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 # noqa 301
shell: "FLASK_APP={{app_program}} {{app_venv}}/bin/flask db upgrade"
args:
chdir: "{{app_path}}"
become: true
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