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.