dynamic config for redlight client module
This commit is contained in:
@@ -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
|
||||
@@ -53,7 +54,8 @@
|
||||
block: |
|
||||
modules:
|
||||
- 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
|
||||
config: {}
|
||||
state: present
|
||||
|
@@ -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