Skip to content
Snippets Groups Projects

New Schrank-Webinterface

3 files
+ 65
0
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: install pdf utils
 
apt:
 
name: poppler-utils
 
state: present
 
 
- name: ensure data model upgrades are applied # noqa 301
 
command: "{{app_venv}}/bin/flask db upgrade"
 
args:
 
chdir: "{{app_path}}"
 
environment:
 
FLASK_APP: "{{app_program}}"
 
become: true
 
become_user: "{{app_user}}"
 
notify:
 
- "restart uwsgi instance {{app.instance}}"
 
 
- name: ensure there a directory for the documents
 
file:
 
path: "{{schrank_document_path}}"
 
state: directory
 
owner: "{{app_user}}"
 
group: "{{schrank_document_group}}"
 
mode: "{{schrank_document_permissions}}"
 
notify:
 
- "restart uwsgi instance {{app.instance}}"
 
 
- name: ensure the folder from above is not present anymore
 
file:
 
path: "{{app_path}}/.ansible"
 
state: absent
Loading