Files
dc-deployments-automation/roles/product_startup/molecule/bitbucket/converge.yml
Geoff Jacobs d7fc6ab3c9 WPTIN-23428: Quote JVM_SUPPORT_RECOMMENDED_ARGS in the Bitbucket systemd unit
Unquoted, systemd splits the Environment= value on whitespace and drops
every JVM option after the first. Quote the whole assignment, as the Mesh
playbook already does, and test with more than one option.
2026-11-18 13:51:43 +11:00

39 lines
1.1 KiB
YAML

---
- name: Converge
hosts: all
vars:
atl_product_user: "bitbucket"
atl_product_family: "stash"
atl_product_edition: "bitbucket"
atl_product_home: "{{ atl_shared_mountpoint }}/{{ atl_product_edition }}"
atl_product_home_shared: "{{ atl_product_home }}/shared"
atl_jvm_heap: "dummy_heap"
atl_jvm_opts: "-Ddummy.one=1 -Ddummy.two=2"
atl_startup_systemd_params:
- "UMask=0027"
- "LimitNOFILE=4096"
- "Environment=BITBUCKET_HOME={{ atl_product_home }}"
- "Environment=JVM_MAXIMUM_MEMORY={{ atl_jvm_heap }}"
- "Environment=JVM_MINIMUM_MEMORY={{ atl_jvm_heap }}"
- 'Environment="JVM_SUPPORT_RECOMMENDED_ARGS={{ atl_jvm_opts }}"'
atl_startup_exec_options:
- "--no-search"
atl_startup_enable: false
atl_startup_restart: false
pre_tasks:
- name: Create systemd dir if necessary
ansible.builtin.file:
path: "{{ item }}"
state: directory
with_items:
- '/usr/lib/systemd/system/'
- '/lib/systemd/system/'
roles:
- role: product_startup