Browse Source

roles/matrix-synapse: advanced http monitoring

python3
Zolfa 5 years ago
parent
commit
fb7f6609f8
Signed by: zolfa GPG Key ID: E1A43B038C4D6616
1 changed files with 21 additions and 0 deletions
  1. +21
    -0
      roles/matrix-synapse/tasks/main.yaml

+ 21
- 0
roles/matrix-synapse/tasks/main.yaml View File

@ -121,3 +121,24 @@
notify: 'reload matrix-synapse' notify: 'reload matrix-synapse'
tags: tags:
- 'service_password' - 'service_password'
- name: 'MONITORING | add HTTP service'
block:
- name: 'MONITORING | add service to monitoring entry'
set_fact:
monitoring_entry: >
{{ monitoring_entry | default({}) | combine({
'address': ansible_host,
'vhosts_uri': { synapse_nginx_fqdn: {'/_matrix/client/versions': '{"versions":'} },
}, recursive=true) }}
- name: 'MONITORING | update monitoring facts'
set_fact:
monitoring_facts: >
{{ hostvars[monitoring_host]['monitoring_facts']
| default({})
| combine({host_fqdn: monitoring_entry}) }}
delegate_facts: true
delegate_to: '{{ monitoring_host }}'
tags:
- 'monitoring'
...

Loading…
Cancel
Save