Ver código fonte

uwsgi handler

master
pai
commit
cb1b2fcdcc
2 arquivos alterados com 9 adições e 0 exclusões
  1. +5
    -0
      handlers/main.yaml
  2. +4
    -0
      tasks/main.yaml

+ 5
- 0
handlers/main.yaml Ver arquivo

@@ -1 +1,6 @@
---

- name: restart uwsgi
service:
name: uwsgi
state: restarted

+ 4
- 0
tasks/main.yaml Ver arquivo

@@ -13,6 +13,7 @@
pip:
name: alerta-server
executable: pip3
notify: restart uwsgi

- name: alerta client pip package
pip:
@@ -66,14 +67,17 @@
content:
uwsgi: "{{alerta_uwsgi_config}}"
dest: /etc/uwsgi/apps-available/alerta.json
notify: restart uwsgi

- name: enable alerta uwsgi configuration
file:
src: ../apps-available/alerta.json
dest: /etc/uwsgi/apps-enabled/alerta.json
state: link
notify: restart uwsgi

- name: alerta wsgi python file
copy:
content: from alerta import app
dest: /opt/alerta/wsgi.py
notify: restart uwsgi

Carregando…
Cancelar
Salvar