blob: 279dea2a68dd2e5a3223baf3405a52057c465f48 [file] [log] [blame]
---
- block:
- name: Normalized name for management server public ip on DC-1
cache:
key: 'public_mgmt_ip'
value: "{{ groups['dc-1-ms'][0] }}"
when: groups['dc-1'] is defined and groups['dc-1-ms'] is defined and inventory_hostname in groups['dc-1']
- name: Normalized name for management server public ip on DC-2
cache:
key: 'public_mgmt_ip'
value: "{{ groups['dc-2-ms'][0] }}"
when: groups['dc-2'] is defined and groups['dc-2-ms'] is defined and inventory_hostname in groups['dc-2']
- name: Normalized name for management server public ip to DC-1 if current node is not in DC-1 or DC-2
cache:
key: 'public_mgmt_ip'
value: "{{ groups['dc-1-ms'][0] }}"
when: groups['dc-1'] is defined and groups['dc-1-ms'] is defined and inventory_hostname in groups['dc-1']