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