2023-09-30 14:42:16 +00:00
|
|
|
# vim: ft=yaml.ansible
|
2024-03-01 20:30:18 +00:00
|
|
|
# code: language=ansible
|
2023-09-30 14:42:16 +00:00
|
|
|
---
|
2023-10-03 19:19:51 +00:00
|
|
|
- name: Create subfolder
|
2023-09-30 14:42:16 +00:00
|
|
|
file:
|
|
|
|
name: "{{ services.element.volume_folder }}/data"
|
|
|
|
state: directory
|
|
|
|
|
2023-10-03 19:19:51 +00:00
|
|
|
- name: Upload config.json
|
2023-09-30 14:42:16 +00:00
|
|
|
template:
|
|
|
|
src: element/config.json.j2
|
|
|
|
dest: "{{ services.element.volume_folder }}/data/config.json"
|
|
|
|
|
2023-10-03 19:19:51 +00:00
|
|
|
- name: Upload riot.im.conf
|
2023-09-30 14:42:16 +00:00
|
|
|
copy:
|
|
|
|
src: element/riot.im.conf
|
|
|
|
dest: "{{ services.element.volume_folder }}/data/riot.im.conf"
|
|
|
|
|
|
|
|
- name: Upload vhost config for Element domain
|
|
|
|
copy:
|
|
|
|
src: vhost/element
|
|
|
|
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.element.domain }}"
|