Merge branch 'riot_config' into 'master'
Default configuration for Riot See merge request aurore/ansible!34
This commit is contained in:
commit
24429ca7b4
2 changed files with 11 additions and 4 deletions
|
@ -22,7 +22,6 @@
|
||||||
retries: 3
|
retries: 3
|
||||||
until: apt_key_result is succeeded
|
until: apt_key_result is succeeded
|
||||||
|
|
||||||
# Install riot
|
|
||||||
- name: Install riot-web
|
- name: Install riot-web
|
||||||
apt:
|
apt:
|
||||||
name: riot-web
|
name: riot-web
|
||||||
|
@ -31,7 +30,16 @@
|
||||||
retries: 3
|
retries: 3
|
||||||
until: apt_result is succeeded
|
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
|
- name: Install nginx
|
||||||
apt:
|
apt:
|
||||||
name: nginx
|
name: nginx
|
||||||
|
@ -39,10 +47,9 @@
|
||||||
retries: 3
|
retries: 3
|
||||||
until: apt_result is succeeded
|
until: apt_result is succeeded
|
||||||
|
|
||||||
# Configure nginx
|
|
||||||
- name: Configure nginx
|
- name: Configure nginx
|
||||||
template:
|
template:
|
||||||
src: nginx-riot.j2
|
src: nginx/riot.j2
|
||||||
dest: /etc/nginx/sites-available/riot
|
dest: /etc/nginx/sites-available/riot
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify: Reload NGINX service
|
notify: Reload NGINX service
|
||||||
|
|
Loading…
Reference in a new issue