Skip to content
Snippets Groups Projects
Commit 380061e4 authored by jurgenhaas's avatar jurgenhaas
Browse files

Fix installation of web ui

parent 49b35b33
No related branches found
No related tags found
No related merge requests found
......@@ -18,19 +18,22 @@
- 'alerta'
- 'uwsgi'
- name: "Remove directories for web UI"
file:
path: '{{ item }}'
state: 'absent'
with_items:
- '/var/www/alerta'
- '/tmp/angular-alerta-webui-master'
- name: "Download and extract web UI"
unarchive:
src: 'https://github.com/alerta/angular-alerta-webui/tarball/master'
dest: '/tmp/alerta-master'
src: 'https://github.com/alerta/angular-alerta-webui/archive/master.zip'
dest: '/tmp'
remote_src: yes
- name: "Remove directory for web UI"
file:
path: '/var/www/alerta'
state: 'absent'
- name: "Move new web UI"
command: 'mv /tmp/alerta-master/app /var/www/alerta'
command: 'mv /tmp/angular-alerta-webui-master/app /var/www/alerta'
- name: "Copy wsgi.py"
template:
......@@ -57,7 +60,7 @@
- name: "Copy nginx default config"
template:
src: 'nginx.default'
dest: '/etc/nginx/sites-enabled/default'
dest: '/etc/nginx/sites-available/default'
notify:
- "Restart nginx"
......
......@@ -11,6 +11,6 @@ OAUTH2_CLIENT_SECRET='{{ alerta_gitlab.client_secret }}'
ALLOWED_GITLAB_GROUPS=['{{ alerta_environments|join("','") }}']
# Plugins
PLUGINS = ['reject']
ORIGIN_BLACKLIST = []
ALLOWED_ENVIRONMENTS = ['{{ alerta_environments|join("','") }}']
PLUGINS=['reject']
ORIGIN_BLACKLIST=[]
ALLOWED_ENVIRONMENTS=['{{ alerta_environments|join("','") }}']
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment