updated to deploy element, fixed directory path for config
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: Deploy Matrix + TURN + NGINX-PM + Teamspeak
|
||||
- name: Deploy Element + Matrix + Matrix_admin + TURN + NGINX-PM + Teamspeak
|
||||
hosts: all
|
||||
become: true
|
||||
collections:
|
||||
@@ -108,7 +108,11 @@
|
||||
dest: "{{ synapse_log_config }}"
|
||||
mode: "0644"
|
||||
|
||||
|
||||
- name: Render Element config file
|
||||
ansible.builtin.template:
|
||||
src: config.json.j2
|
||||
dest: "{{ element_config_path }}"
|
||||
mode: "0644"
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# Start the NGINX Proxy Manager Container
|
||||
@@ -213,10 +217,23 @@
|
||||
|
||||
- name: Start Matrix Admin panel
|
||||
containers.podman.podman_container:
|
||||
name: "{{ adin_container_name }}"
|
||||
name: "{{ admin_container_name }}"
|
||||
image: "{{ synapse_admin_image }}"
|
||||
state: started
|
||||
network: "{{ podman_network }}"
|
||||
restart_policy: always
|
||||
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# Element Web app
|
||||
#------------------------------------------------------------------
|
||||
- name: start Element Web Application
|
||||
containers.podman.podman_container:
|
||||
name: "{{ element_container_name }}"
|
||||
image: "{{ element_image }}"
|
||||
state: started
|
||||
volumes:
|
||||
- "{{ element_config_path }}:/app/config.json:Z"
|
||||
network: "{{ podman_network }}"
|
||||
restart_policy: always
|
||||
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@ auto_join_rooms:
|
||||
- "#star-citizen:matrix.fpov.space"
|
||||
- "#welcome:matrix.fpov.space"
|
||||
|
||||
max_upload_size: 200M
|
||||
|
||||
media_store_path: /data/media_store
|
||||
log_config: "/data/matrix.fpov.space.log.config"
|
||||
|
||||
@@ -7,7 +7,8 @@ site_domain: "org.fpov.space"
|
||||
teamspeak_domain: "ts.fpov.space"
|
||||
turn_domain: "turn.fpov.space"
|
||||
matrix_email: "boxswappers@gmail.com"
|
||||
|
||||
admin_domain: "mtxadm.fpov.space"
|
||||
element_domain: "element.fpov.space"
|
||||
|
||||
# --------------------------------------------------------------
|
||||
# Ports
|
||||
@@ -53,6 +54,7 @@ nginx_image: "docker.io/nginx:latest"
|
||||
npm_image: "docker.io/jc21/nginx-proxy-manager:latest"
|
||||
teamspeak_image: "docker.io/teamspeak:latest"
|
||||
synapse_admin_image: "docker.io/awesometechnologies/synapse-admin:latest"
|
||||
element_image: "docker.io/vectorim/element-web:latest"
|
||||
|
||||
|
||||
# --------------------------------------------------------------
|
||||
@@ -79,12 +81,18 @@ synapse_cfg_path: "/tmp/homeserver.yaml"
|
||||
nginx_html_path: "/tmp/index.html"
|
||||
synapse_secret_key_path: "/tmp/matrix.fpov.space.signing.key"
|
||||
synapse_log_config: "/tmp/matrix.fpov.space.log.config"
|
||||
element_config_path: "/tmp/config.json"
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# Synapse Admin
|
||||
#------------------------------------------------------------------
|
||||
adin_container_name: mtxadm
|
||||
admin_container_name: mtxadm
|
||||
|
||||
#------------------------------------------------------------------
|
||||
# Element App
|
||||
#------------------------------------------------------------------
|
||||
element_brand: "FPoV Chat"
|
||||
element_container_name: "element"
|
||||
# -----------------------------------------------------------------
|
||||
# Google OAuth2 (OpenID Connect) credentials
|
||||
# -----------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user