Files
dc-deployments-automation/aws_jira_cluster_zdu.yml
2020-03-26 15:34:25 +11:00

47 lines
1.3 KiB
YAML

---
- hosts: localhost
connection: local
vars_files: group_vars/aws_node_local.yml
roles:
- role: jira_zdu_init
- hosts: all
serial: 1
any_errors_fatal: true
vars_files: group_vars/aws_node_local.yml
vars:
# See group_vars/aws_node_local.yml, which pull vars from the environment.
atl_product_family: "jira"
atl_product_user: "jira"
atl_product_edition: "jira-{{ lookup('env', 'ATL_PRODUCT_EDITION') | lower }}"
atl_install_jsd_as_obr: "{{ lookup('env', 'ATL_JSD_ASOBR') }}"
atl_systemd_service_name: "jira.service"
pre_tasks:
- name: Stop jira
service:
name: "{{ atl_systemd_service_name }}"
state: stopped
roles:
- role: aws_common
- role: product_common
- role: product_install
- role: jira_config
- role: product_startup
post_tasks:
- name: Wait for node to finish startup
uri:
url: "127.0.0.1{{ atl_tomcat_contextpath }}/status"
method: GET
status_code: 200
register: jira_state
failed_when: jira_state.json is not defined or (jira_state.json is defined and jira_state.json.state != 'RUNNING')
until: jira_state.json is defined and jira_state.json.state == 'RUNNING'
retries: 120
delay: 5
- hosts: localhost
connection: local
vars_files: group_vars/aws_node_local.yml
roles:
- role: jira_zdu_finish