Updated to better manage remote ldap
diff --git a/tasks/ldap.yml b/tasks/ldap.yml index d8988fc..b411959 100644 --- a/tasks/ldap.yml +++ b/tasks/ldap.yml
@@ -12,8 +12,9 @@ value: "{{ hostvars[groups['dc-1-ldap'][0]][interface_name].ipv4.address }}" - name: Set ldap remote flag - cache: use_opdk_ldap_remote_host - value: 'y' + cache: + key: use_opdk_ldap_remote_host + value: 'y' when: groups['dc-1'] is defined and groups['dc-1-ldap'] is defined and inventory_hostname in groups['dc-1'] and hostvars[groups['dc-1-ms'][0]][interface_name].ipv4.address is defined - name: Normalized name for ldap ip if on dc-2 @@ -29,8 +30,9 @@ value: "{{ hostvars[groups['dc-2-ldap'][0]][interface_name].ipv4.address }}" - name: Set ldap remote flag - cache: use_opdk_ldap_remote_host - value: 'y' + cache: + key: use_opdk_ldap_remote_host + value: 'y' when: groups['dc-2'] is defined and groups['dc-2-ldap'] is defined and inventory_hostname in groups['dc-2'] and hostvars[groups['dc-1-ms'][0]][interface_name].ipv4.address is defined - name: Normalized name for management server local ip to dc-1 if current node is not on dc-1 or dc-2