ansible/roles/docker/tasks/services/element.yml

33 lines
894 B
YAML

# vim: ft=yaml.ansible
---
- name: Create Element volume folder
file:
name: "{{ services.element.volume_folder }}/data"
state: directory
- name: Upload Element config.json
template:
src: element/config.json.j2
dest: "{{ services.element.volume_folder }}/data/config.json"
- name: Upload Element riot.im.conf
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 }}"
- name: Upload Compose file for Element
template:
src: compose-files/element.yml.j2
dest: "{{ services.element.volume_folder }}/docker-compose.yml"
- name: Deploy Element
docker_compose:
project_src: "{{ services.element.volume_folder }}"
pull: true
state: present