Merge branch 'riot_config' into 'master'

Default configuration for Riot

See merge request aurore/ansible!34
This commit is contained in:
Alexandre IOOSS 2019-03-26 08:34:18 +01:00
commit 24429ca7b4
2 changed files with 11 additions and 4 deletions

View file

@ -22,7 +22,6 @@
retries: 3
until: apt_key_result is succeeded
# Install riot
- name: Install riot-web
apt:
name: riot-web
@ -31,7 +30,16 @@
retries: 3
until: apt_result is succeeded
# Install nginx
- name: Configure riot-web
lineinfile:
path: /opt/Riot/resources/webapp/config.json
regexp: '^\s*\"{{ item[0] }}'
line: " \"{{ item[0] }}\": \"{{ item[1] }}\","
loop:
- ['default_hs_url', 'https://auro.re']
- ['default_is_url', 'https://auro.re']
- ['brand', 'Riot Aurore']
- name: Install nginx
apt:
name: nginx
@ -39,10 +47,9 @@
retries: 3
until: apt_result is succeeded
# Configure nginx
- name: Configure nginx
template:
src: nginx-riot.j2
src: nginx/riot.j2
dest: /etc/nginx/sites-available/riot
mode: 0644
notify: Reload NGINX service