Compare commits
8 Commits
a707d8a746
...
main
Author | SHA1 | Date | |
---|---|---|---|
|
466142c446 | ||
|
2944e642e5 | ||
|
4590292e2d | ||
|
45f9565c38 | ||
|
46c2d69c3d | ||
|
9198924162 | ||
|
e7b4b3fa56 | ||
|
bef33e1b79 |
11
inventory/host_vars/matrix.duckdomain.xyz/vars.yml
Normal file
11
inventory/host_vars/matrix.duckdomain.xyz/vars.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
server_name: "duckdomain.xyz"
|
||||
postgresql_password: "strong-redacted-password"
|
||||
matrix_admin_email: "perthchat@protonmail.com"
|
||||
registration_shared_secret: "strong-redacted-password"
|
||||
|
||||
testing_user: {
|
||||
"username": "newuser2500",
|
||||
"password": "strong-redacted-password",
|
||||
"admin": True
|
||||
}
|
@@ -1,4 +1,5 @@
|
||||
|
||||
[matrix_servers]
|
||||
#matrix.penholder.xyz ansible_host=matrix.penholder.xyz ansible_ssh_user=root
|
||||
matrix.snowsupport.top ansible_host=matrix.snowsupport.top ansible_ssh_user=root
|
||||
#matrix.snowsupport.top ansible_host=matrix.snowsupport.top ansible_ssh_user=root
|
||||
matrix.duckdomain.xyz ansible_host=matrix.duckdomain.xyz ansible_ssh_user=root
|
@@ -26,7 +26,8 @@
|
||||
name: rsync
|
||||
state: present
|
||||
|
||||
- name: Clone redlight module to /tmp
|
||||
- name: Clone redlight module to /tmp to ansible controller
|
||||
delegate_to: localhost
|
||||
git:
|
||||
repo: https://code.glowers.club/PC-Admin/redlight.git
|
||||
dest: /tmp/redlight
|
||||
@@ -52,12 +53,42 @@
|
||||
path: /etc/matrix-synapse/homeserver.yaml
|
||||
block: |
|
||||
modules:
|
||||
- module: hello_world_module.HelloWorldModule
|
||||
config: {} # No specific configuration for this module
|
||||
- module: abuse_lookup_module.AbuseLookupModule
|
||||
config: {}
|
||||
- module: redlight_client_module.RedlightClientModule
|
||||
config:
|
||||
homeserver_url: "{{ server_name }}"
|
||||
redlight_alert_bot_token: "{{ redlight_alert_bot_token }}"
|
||||
redlight_alert_room: "{{ redlight_alert_room }}"
|
||||
redlight_server: "{{ redlight_server }}"
|
||||
redlight_api_token: "{{ redlight_api_token }}"
|
||||
- module: redlight_server_module.RedlightServerModule
|
||||
config:
|
||||
redlight_source_repo_url: "https://code.glowers.club/api/v1/repos/testing-org/rdlist"
|
||||
redlight_git_token: "{{ redlight_git_token }}"
|
||||
redlight_source_list_file_path: "dist/summaries.json"
|
||||
redlight_client_tokens: "{{ redlight_client_tokens }}"
|
||||
redlight_filtered_tags: {{ redlight_filtered_tags }}
|
||||
state: present
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
notify: Restart Synapse
|
||||
|
||||
- name: Create matrix_redlight role in PostgreSQL
|
||||
become: yes
|
||||
become_user: postgres
|
||||
postgresql_user:
|
||||
name: matrix_redlight
|
||||
password: "{{ redlight_postgresql_password }}"
|
||||
role_attr_flags: NOSUPERUSER,NOCREATEDB,NOCREATEROLE
|
||||
encrypted: yes
|
||||
|
||||
- name: Create Database for matrix_redlight
|
||||
become: yes
|
||||
become_user: postgres
|
||||
postgresql_db:
|
||||
name: matrix_redlight
|
||||
encoding: UTF8
|
||||
lc_collate: C
|
||||
lc_ctype: C
|
||||
template: template0
|
||||
owner: matrix_redlight
|
||||
|
@@ -27,11 +27,9 @@
|
||||
state: absent
|
||||
notify: Restart Nginx
|
||||
|
||||
# - name: Set Synapse Cache Factor
|
||||
# lineinfile:
|
||||
# path: /etc/default/matrix-synapse
|
||||
# regexp: '^SYNAPSE_CACHE_FACTOR='
|
||||
# line: 'SYNAPSE_CACHE_FACTOR=2.0'
|
||||
# state: present
|
||||
# create: yes
|
||||
# notify: Restart Synapse
|
||||
- name: Ensure Synapse is running
|
||||
service:
|
||||
name: matrix-synapse
|
||||
state: started
|
||||
enabled: yes
|
||||
notify: Restart Synapse
|
Reference in New Issue
Block a user