瀏覽代碼

uwsgi handler

master
父節點
當前提交
cb1b2fcdcc
共有 2 個檔案被更改,包括 9 行新增0 行删除
  1. +5
    -0
      handlers/main.yaml
  2. +4
    -0
      tasks/main.yaml

+ 5
- 0
handlers/main.yaml 查看文件

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

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

+ 4
- 0
tasks/main.yaml 查看文件

@@ -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

Loading…
取消
儲存