summaryrefslogtreecommitdiff
path: root/roles/uwsgi/app/tasks
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-12-08 20:06:25 +0100
committerChristian Pointner <equinox@spreadspace.org>2020-12-08 20:06:25 +0100
commit785cae7ccf8c69366438a446ff121ecbb7ad5465 (patch)
treef9971024e7befb12bb2bf26277d7b8c2006c36e1 /roles/uwsgi/app/tasks
parentadd role for graphite carbon-cache (diff)
add grahpite web and grafana roles
Diffstat (limited to 'roles/uwsgi/app/tasks')
-rw-r--r--roles/uwsgi/app/tasks/main.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/uwsgi/app/tasks/main.yml b/roles/uwsgi/app/tasks/main.yml
new file mode 100644
index 00000000..69bea0a2
--- /dev/null
+++ b/roles/uwsgi/app/tasks/main.yml
@@ -0,0 +1,13 @@
+---
+- name: install app config
+ copy:
+ content: "{{ uwsgi_app.content }}"
+ dest: "/etc/uwsgi/apps-available/{{ uwsgi_app.name }}.ini"
+ notify: reload uwsgi
+
+- name: enable app config
+ file:
+ src: "../apps-available/{{ uwsgi_app.name }}.ini"
+ dest: "/etc/uwsgi/apps-enabled/{{ uwsgi_app.name }}.ini"
+ state: link
+ notify: reload uwsgi