ITSD-487185 atl_aws_region was empty - need alternative

This commit is contained in:
Glenn Stewart
2025-09-30 13:45:29 +10:00
parent 20f38cc26a
commit 402c3d414f

View File

@@ -44,11 +44,11 @@
with_items: with_items:
- "search.platform=opensearch" - "search.platform=opensearch"
- "opensearch.http.url={{ atl_opensearch_endpoint }}" - "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" - "jira.search.api.reindex.bulk.request.size=10"
when: when:
- atl_opensearch_endpoint is defined and atl_opensearch_endpoint | length > 0 - 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. - name: Override JVM memory settings.
# Ugly but necessary as the product installs this file so we need to make the change here. # Ugly but necessary as the product installs this file so we need to make the change here.