updated logic
diff --git a/tasks/main.yml b/tasks/main.yml
index e8ebc4c..2ebb91d 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -26,12 +26,13 @@
- name: Regional LDAP IP for dc-1 if replicating LDAP
set_fact:
+ ldap_sid: '1'
ldap_peer: "{{ hostvars[groups['dc-2-ldap'][0]]['private_address'] }}"
when: region == 'dc-1' and opdk_ldap_type == '2'
- name: Regional LDAP IP for dc-2 if replicating LDAP
set_fact:
- ldap_sid
+ ldap_sid: '2'
ldap_peer: "{{ hostvars[groups['dc-1-ldap'][0]]['private_address'] }}"
when: region == 'dc-2' and opdk_ldap_type == '2'