Skip to content
Snippets Groups Projects
Commit 1e840f64 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-roles/alerta#1 Start building new role alerta

parent 4ded5cab
No related branches found
No related tags found
No related merge requests found
---
dependencies:
- { role: mongodb }
---
# file: roles/alerta/tasks/alerta.yml
$ pip install alerta-server
$ alertad run --port 8080
$ wget -O alerta-web.tgz https://github.com/alerta/angular-alerta-webui/tarball/master
$ tar zxvf alerta-web.tgz
$ cd alerta-angular-alerta-webui-*/app
$ python -m SimpleHTTPServer 8000
>> browse to http://localhost:8000
##
# Ansible file to install Alerta from http://alerta.io
#
---
# file: roles/alerta/tasks/main.yml
- name: "Alerta Role"
set_fact: role_alerta_started=true
tags: 'always'
- block:
- import_tasks: alerta.yml
- name: 'Remember that this role had been run'
set_fact: role_alerta_completed=true
tags: 'always'
when: '"alerta" not in excluded_roles and role_alerta_completed is not defined'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment