Skip to content
Merged
6 changes: 2 additions & 4 deletions roles/platform/tasks/create-properties-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@
vars:
profile_name: Local_AAA
when:
- (groups["redis_secondary"] is not defined and groups["rabbitmq_secondary"] is not defined) or
(groups["redis_secondary"] | length == 0 and groups["rabbitmq_secondary"] | length == 0)
- groups["platform_secondary"] is not defined or groups["platform_secondary"] | length < 1

- name: Create the Itential properties.json files for advanced prod builds
when:
- groups["redis_secondary"] is defined and groups["rabbitmq_secondary"] is defined
- groups["redis_secondary"] | length > 0 and groups["rabbitmq_secondary"] | length > 0
- groups["platform_secondary"] is defined and groups["platform_secondary"] | length > 0
block:
- name: Create the default Itential properties.json file for the primary
ansible.builtin.template:
Expand Down
3 changes: 1 addition & 2 deletions roles/platform/tasks/mongo-init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@
- name: Create advanced profile documents for non-default production environments
when:
- inventory_hostname == groups.platform[0]
- groups["redis_secondary"] | default([]) | length > 0
- groups["rabbitmq_secondary"] | default([]) | length > 0
- groups["platform_secondary"] | default([]) | length > 0
block:
# Determine if the Local_AAA profile is already in the database
- name: Determine if the Primary_Local_AAA profile document already exists
Expand Down