|
@ -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' |
|
|
|
|
|
... |