Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
webservices
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible-shared
webservices
Merge requests
!33
New Schrank-Webinterface
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
New Schrank-Webinterface
schrank-flask
into
master
Overview
1
Commits
2
Pipelines
1
Changes
4
Merged
Robin Sonnabend
requested to merge
schrank-flask
into
master
3 years ago
Overview
1
Commits
2
Pipelines
1
Changes
4
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
56dc14c7
2 commits,
3 years ago
4 files
+
65
−
34
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
uwsgi-python/tasks/apps/schrank-flask.yml
0 → 100644
+
40
−
0
Options
---
# 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