Create role to stop product

This commit is contained in:
Ben Partridge
2020-03-24 17:01:02 +11:00
parent 9ca02cfc29
commit cfe97e2515
3 changed files with 26 additions and 7 deletions

View File

@@ -12,14 +12,9 @@
atl_startup_systemd_params: atl_startup_systemd_params:
- "LimitNOFILE=16384" - "LimitNOFILE=16384"
pre_tasks:
- name: stop jira
service:
name: "{{ atl_systemd_service_name }}"
state: stopped
roles: roles:
- role: product_stop
- role: product_common - role: product_common
- role: product_install - role: product_install
- role: jira_config - role: jira_config

View 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"

View File

@@ -0,0 +1,5 @@
---
- name: stop {{ atl_product_family }} {{ atl_product_edition}}
service:
name: "{{ atl_systemd_service_name }}"
state: stopped