From cf34d9522c7e3569699d0f187b1ba53f1b6a13c7 Mon Sep 17 00:00:00 2001 From: Zolfa Date: Wed, 27 May 2020 16:11:03 +0200 Subject: [PATCH] roles/ldap: monitoring fact added --- roles/ldap/tasks/1_configure_server.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/roles/ldap/tasks/1_configure_server.yaml b/roles/ldap/tasks/1_configure_server.yaml index f5b9f87..17277b2 100644 --- a/roles/ldap/tasks/1_configure_server.yaml +++ b/roles/ldap/tasks/1_configure_server.yaml @@ -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' ...