dynamic config for redlight client module
This commit is contained in:
parent
bef33e1b79
commit
e7b4b3fa56
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_servers]
|
||||||
#matrix.penholder.xyz ansible_host=matrix.penholder.xyz ansible_ssh_user=root
|
#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
|
name: rsync
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Clone redlight module to /tmp
|
- name: Clone redlight module to /tmp to ansible controller
|
||||||
|
delegate_to: localhost
|
||||||
git:
|
git:
|
||||||
repo: https://code.glowers.club/PC-Admin/redlight.git
|
repo: https://code.glowers.club/PC-Admin/redlight.git
|
||||||
dest: /tmp/redlight
|
dest: /tmp/redlight
|
||||||
@ -53,7 +54,8 @@
|
|||||||
block: |
|
block: |
|
||||||
modules:
|
modules:
|
||||||
- module: redlight_client_module.RedlightClientModule
|
- module: redlight_client_module.RedlightClientModule
|
||||||
config: {} # No specific configuration for this module
|
config:
|
||||||
|
redlight_url: "https://{{ server_name }}/_matrix/loj/v1/abuse_lookup"
|
||||||
- module: redlight_server_module.RedlightServerModule
|
- module: redlight_server_module.RedlightServerModule
|
||||||
config: {}
|
config: {}
|
||||||
state: present
|
state: present
|
||||||
|
@ -27,11 +27,9 @@
|
|||||||
state: absent
|
state: absent
|
||||||
notify: Restart Nginx
|
notify: Restart Nginx
|
||||||
|
|
||||||
# - name: Set Synapse Cache Factor
|
- name: Ensure Synapse is running
|
||||||
# lineinfile:
|
service:
|
||||||
# path: /etc/default/matrix-synapse
|
name: matrix-synapse
|
||||||
# regexp: '^SYNAPSE_CACHE_FACTOR='
|
state: started
|
||||||
# line: 'SYNAPSE_CACHE_FACTOR=2.0'
|
enabled: yes
|
||||||
# state: present
|
notify: Restart Synapse
|
||||||
# create: yes
|
|
||||||
# notify: Restart Synapse
|
|
Loading…
Reference in New Issue
Block a user