From 402c3d414f6fda76c0715ea36255e25748a3c335 Mon Sep 17 00:00:00 2001 From: Glenn Stewart Date: Tue, 30 Sep 2025 13:45:29 +1000 Subject: [PATCH] ITSD-487185 atl_aws_region was empty - need alternative --- roles/jira_config/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/jira_config/tasks/main.yml b/roles/jira_config/tasks/main.yml index 9b115a2..69f6a03 100644 --- a/roles/jira_config/tasks/main.yml +++ b/roles/jira_config/tasks/main.yml @@ -44,11 +44,11 @@ with_items: - "search.platform=opensearch" - "opensearch.http.url={{ atl_opensearch_endpoint }}" - - "opensearch.aws.region={{ atl_aws_region }}" + - "opensearch.aws.region={{ atl_aws_region | default(ansible_ec2_placement_region) }}" - "jira.search.api.reindex.bulk.request.size=10" when: - atl_opensearch_endpoint is defined and atl_opensearch_endpoint | length > 0 - - atl_aws_region is defined + - (atl_aws_region is defined or ansible_ec2_placement_region is defined) - name: Override JVM memory settings. # Ugly but necessary as the product installs this file so we need to make the change here.