mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 04:31:13 +01:00
Compare commits
No commits in common. "d138458b94886234f429a6fcc89c1900c9b4a0e1" and "a0d6f792790e5d90e0f488ee96584262b0d5928f" have entirely different histories.
d138458b94
...
a0d6f79279
@ -8,13 +8,5 @@ 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.
|
||||
|
||||
## 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
|
||||
An alternativ role to deploy Matrix you will find [here](../docker-matrix-compose/)
|
@ -17,17 +17,17 @@
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
#- name: "create {{docker_compose_instance_directory}}mautrix_whatsapp"
|
||||
# file:
|
||||
# path: "{{docker_compose_instance_directory}}mautrix_whatsapp"
|
||||
# state: directory
|
||||
# mode: 0755
|
||||
#
|
||||
#- name: add whatsapp-bridge-config.yml
|
||||
# template:
|
||||
# src: "whatsapp-bridge-config.yml.j2"
|
||||
# dest: "{{docker_compose_instance_directory}}mautrix_whatsapp/config.yml"
|
||||
# notify: recreate matrix
|
||||
- name: "create {{docker_compose_instance_directory}}mautrix_whatsapp"
|
||||
file:
|
||||
path: "{{docker_compose_instance_directory}}mautrix_whatsapp"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: add whatsapp-bridge-config.yml
|
||||
template:
|
||||
src: "whatsapp-bridge-config.yml.j2"
|
||||
dest: "{{docker_compose_instance_directory}}mautrix_whatsapp/config.yml"
|
||||
notify: recreate matrix
|
||||
|
||||
- name: add element-config.json
|
||||
template:
|
||||
|
@ -12,7 +12,7 @@ database:
|
||||
name: psycopg2
|
||||
args:
|
||||
user: matrix
|
||||
password: "{{matrix_database_password}}"
|
||||
password: {{matrix_database_password}}
|
||||
database: matrix
|
||||
host: database
|
||||
cp_min: 5
|
||||
|
@ -3,7 +3,7 @@ homeserver:
|
||||
# The address that this appservice can use to connect to the homeserver.
|
||||
address: https://{{synapse_domain}}
|
||||
# The domain of the homeserver (for MXIDs, etc).
|
||||
domain: "{{synapse_domain}}"
|
||||
domain: {{synapse_domain}}
|
||||
|
||||
# What software is the homeserver running?
|
||||
# Standard Matrix homeservers like Synapse, Dendrite and Conduit should just use "standard" here.
|
||||
|
@ -204,7 +204,6 @@
|
||||
become: true
|
||||
roles:
|
||||
- role: docker-matrix-ansible
|
||||
when: matrix_role == 'ansible'
|
||||
vars:
|
||||
domains:
|
||||
- "{{domain_matrix_element}}"
|
||||
@ -212,13 +211,14 @@
|
||||
element_domain: "{{domain_matrix_element}}"
|
||||
synapse_domain: "{{domain_matrix_synapse}}"
|
||||
http_port: 8021
|
||||
when: matrix_role == 'ansible'
|
||||
- role: docker-matrix-compose
|
||||
when: matrix_role == 'compose'
|
||||
vars:
|
||||
element_domain: "{{domain_matrix_element}}"
|
||||
synapse_domain: "{{domain_matrix_synapse}}"
|
||||
synapse_http_port: 8021
|
||||
element_http_port: 8022
|
||||
when: matrix_role == 'compose'
|
||||
|
||||
- name: setup open project instances
|
||||
hosts: openproject
|
||||
|
Loading…
Reference in New Issue
Block a user