Default configuration for Riot
This commit is contained in:
parent
9731832797
commit
ee4f144b4a
2 changed files with 11 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue