Browse Source

roles/nextcloud: advanced http monitoring

python3
Zolfa 5 years ago
parent
commit
9a7f89b3c7
Signed by: zolfa GPG Key ID: E1A43B038C4D6616
1 changed files with 19 additions and 0 deletions
  1. +19
    -0
      roles/nextcloud/tasks/main.yaml

+ 19
- 0
roles/nextcloud/tasks/main.yaml View File

@ -199,4 +199,23 @@
nojson: true
tags:
- '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': { nextcloud_nginx_fqdn: {'/': 'nextcloud.com'} },
}, 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