Compare commits

...

4 Commits

5 changed files with 23 additions and 15 deletions

View File

@ -8,5 +8,13 @@ Matrix is an open-source project that provides a protocol for secure, decentrali
This software uses https://github.com/spantaleev/matrix-docker-ansible-deploy as a base. This software uses https://github.com/spantaleev/matrix-docker-ansible-deploy as a base.
## DANGER: Manuell deativation and deletion
Be carefull what you do. This code you can execute:
```
systemctl list-units --type=service | grep 'matrix' | awk '{print $1}' | xargs -I {} systemctl disable {} &&
systemctl list-units --type=service | grep 'matrix' | awk '{print $1}' | xargs -I {} systemctl stop {} &&
rm -rv /matrix/
```
## Alternativ Matrix Setup Role ## Alternativ Matrix Setup Role
An alternativ role to deploy Matrix you will find [here](../docker-matrix-compose/) An alternativ role to deploy Matrix you will find [here](../docker-matrix-compose/)

View File

@ -17,17 +17,17 @@
state: directory state: directory
mode: 0755 mode: 0755
- name: "create {{docker_compose_instance_directory}}mautrix_whatsapp" #- name: "create {{docker_compose_instance_directory}}mautrix_whatsapp"
file: # file:
path: "{{docker_compose_instance_directory}}mautrix_whatsapp" # path: "{{docker_compose_instance_directory}}mautrix_whatsapp"
state: directory # state: directory
mode: 0755 # mode: 0755
#
- name: add whatsapp-bridge-config.yml #- name: add whatsapp-bridge-config.yml
template: # template:
src: "whatsapp-bridge-config.yml.j2" # src: "whatsapp-bridge-config.yml.j2"
dest: "{{docker_compose_instance_directory}}mautrix_whatsapp/config.yml" # dest: "{{docker_compose_instance_directory}}mautrix_whatsapp/config.yml"
notify: recreate matrix # notify: recreate matrix
- name: add element-config.json - name: add element-config.json
template: template:

View File

@ -12,7 +12,7 @@ database:
name: psycopg2 name: psycopg2
args: args:
user: matrix user: matrix
password: {{matrix_database_password}} password: "{{matrix_database_password}}"
database: matrix database: matrix
host: database host: database
cp_min: 5 cp_min: 5

View File

@ -3,7 +3,7 @@ homeserver:
# The address that this appservice can use to connect to the homeserver. # The address that this appservice can use to connect to the homeserver.
address: https://{{synapse_domain}} address: https://{{synapse_domain}}
# The domain of the homeserver (for MXIDs, etc). # The domain of the homeserver (for MXIDs, etc).
domain: {{synapse_domain}} domain: "{{synapse_domain}}"
# What software is the homeserver running? # What software is the homeserver running?
# Standard Matrix homeservers like Synapse, Dendrite and Conduit should just use "standard" here. # Standard Matrix homeservers like Synapse, Dendrite and Conduit should just use "standard" here.

View File

@ -204,6 +204,7 @@
become: true become: true
roles: roles:
- role: docker-matrix-ansible - role: docker-matrix-ansible
when: matrix_role == 'ansible'
vars: vars:
domains: domains:
- "{{domain_matrix_element}}" - "{{domain_matrix_element}}"
@ -211,14 +212,13 @@
element_domain: "{{domain_matrix_element}}" element_domain: "{{domain_matrix_element}}"
synapse_domain: "{{domain_matrix_synapse}}" synapse_domain: "{{domain_matrix_synapse}}"
http_port: 8021 http_port: 8021
when: matrix_role == 'ansible'
- role: docker-matrix-compose - role: docker-matrix-compose
when: matrix_role == 'compose'
vars: vars:
element_domain: "{{domain_matrix_element}}" element_domain: "{{domain_matrix_element}}"
synapse_domain: "{{domain_matrix_synapse}}" synapse_domain: "{{domain_matrix_synapse}}"
synapse_http_port: 8021 synapse_http_port: 8021
element_http_port: 8022 element_http_port: 8022
when: matrix_role == 'compose'
- name: setup open project instances - name: setup open project instances
hosts: openproject hosts: openproject