Browse Source

roles/ldap: monitoring fact added

python3
Zolfa 4 years ago
parent
commit
cf34d9522c
Signed by: zolfa GPG Key ID: E1A43B038C4D6616
1 changed files with 17 additions and 0 deletions
  1. +17
    -0
      roles/ldap/tasks/1_configure_server.yaml

+ 17
- 0
roles/ldap/tasks/1_configure_server.yaml View File

@ -233,5 +233,22 @@
# by group.exact=cn=admin,ou=Group,{{ ldap_basedn }} write
# by dn.children=ou=Server,{{ ldap_basedn }} read
# [5] :: ou=Kerberos - Wi
- name: 'MONITORING | set ldap_server'
set_fact:
monitoring_facts: >
{{ hostvars[monitoring_host]["monitoring_facts"]
| default({})
| combine({
host_fqdn: {
"address": ansible_host,
"vars": { "ldap_base": ldap_basedn }
}
}, recursive=True) }}
delegate_to: '{{ monitoring_host }}'
delegate_facts: true
tags:
- 'monitoring'
...

Loading…
Cancel
Save