mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-16 01:43:06 -06:00
Create role to stop product
This commit is contained in:
@@ -12,14 +12,9 @@
|
||||
|
||||
atl_startup_systemd_params:
|
||||
- "LimitNOFILE=16384"
|
||||
|
||||
pre_tasks:
|
||||
- name: stop jira
|
||||
service:
|
||||
name: "{{ atl_systemd_service_name }}"
|
||||
state: stopped
|
||||
|
||||
|
||||
roles:
|
||||
- role: product_stop
|
||||
- role: product_common
|
||||
- role: product_install
|
||||
- role: jira_config
|
||||
|
||||
19
roles/product_stop/defaults/main.yml
Normal file
19
roles/product_stop/defaults/main.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
|
||||
# Mostly for molecule testing, as skip-tags doesn't work with handlers.
|
||||
atl_startup_enable: true
|
||||
atl_startup_restart: "{{ lookup('env', 'ATL_STARTUP_RESTART') or true }}"
|
||||
|
||||
atl_startup_script_map:
|
||||
jira: "bin/start-jira.sh"
|
||||
confluence: "bin/start-confluence.sh"
|
||||
stash: "bin/start-bitbucket.sh"
|
||||
crowd: "start_crowd.sh"
|
||||
|
||||
atl_startup_exec_path: "{{ atl_product_installation_current }}/{{ atl_startup_script_map[atl_product_family] }}"
|
||||
atl_startup_exec_options: ["-fg"]
|
||||
atl_startup_systemd_params: []
|
||||
|
||||
atl_systemd_service_name: "{{ atl_product_edition }}.service"
|
||||
|
||||
atl_systemd_service_target: "multi-user.target"
|
||||
5
roles/product_stop/tasks/main.yml
Normal file
5
roles/product_stop/tasks/main.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- name: stop {{ atl_product_family }} {{ atl_product_edition}}
|
||||
service:
|
||||
name: "{{ atl_systemd_service_name }}"
|
||||
state: stopped
|
||||
Reference in New Issue
Block a user