Enable support for custom HTML in riot-web homepage

* Add default template file for homepage HTML
* Add default riot-web config options for homepage
This commit is contained in:
anadahz
2018-12-11 13:48:54 +00:00
parent cb874da1f7
commit 57bfb970a9
4 changed files with 325 additions and 4 deletions

View File

@ -20,14 +20,15 @@
- name: Ensure Matrix riot-web configured
template:
src: "{{ role_path }}/templates/riot-web/{{ item }}.j2"
dest: "{{ matrix_riot_web_data_path }}/{{ item }}"
src: "{{ item.src }}"
dest: "{{ matrix_riot_web_data_path }}/{{ item.name }}"
mode: 0644
owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_username }}"
with_items:
- "riot.im.conf"
- "config.json"
- {src: "{{ role_path }}/templates/riot-web/riot.im.conf.j2", name: "riot.im.conf"}
- {src: "{{ role_path }}/templates/riot-web/config.json.j2", name: "config.json"}
- {src: "{{ matrix_riot_web_homepage_template }}", name: "home.html"}
when: matrix_riot_web_enabled
- name: Ensure matrix-riot-web.service installed