mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
crowd
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
---
|
||||
|
||||
- name: Check for existing version cache file
|
||||
stat:
|
||||
path: "{{ atl_product_version_cache }}"
|
||||
@@ -97,11 +95,18 @@
|
||||
set_fact:
|
||||
atl_product_version: "{{ atl_download_version }}"
|
||||
|
||||
#- set_fact:
|
||||
# atl_product_version: '3.4.4'
|
||||
|
||||
######################################################################
|
||||
|
||||
#- debug:
|
||||
# msg: "{{ atl_product_edition }}_extra_tasks.yml"
|
||||
|
||||
- name: Perform any additional per-edition version setup
|
||||
include_tasks: "{{ atl_product_edition }}_extra_tasks.yml"
|
||||
when: atl_product_edition!= "crowd"
|
||||
|
||||
|
||||
|
||||
- name: Create installation directories
|
||||
@@ -118,6 +123,8 @@
|
||||
- "{{ atl_product_version_cache_dir }}"
|
||||
changed_when: false # For Molecule idempotence check
|
||||
|
||||
- debug:
|
||||
msg: "atl_installer_temp - {{atl_installer_temp}} atl_product_home - {{atl_product_home}} atl_product_installation_versioned- {{atl_product_installation_versioned}} atl_product_version_cache_dir- {{atl_product_version_cache_dir}}"
|
||||
|
||||
# At this point atl_product_version should be set, cache if necessary.
|
||||
- name: Write override cached version when specified
|
||||
@@ -136,12 +143,14 @@
|
||||
dest: "{{ atl_product_download }}"
|
||||
mode: 0755
|
||||
force: false
|
||||
when: atl_product_edition!= "crowd"
|
||||
|
||||
- name: Create installer varfile
|
||||
template:
|
||||
src: "{{ atl_product_family }}.varfile.j2"
|
||||
dest: "{{ atl_product_varfile }}"
|
||||
mode: 0755
|
||||
when: atl_product_edition!= "crowd"
|
||||
|
||||
# NOTE: We run the installer as the user rather than root to limit its
|
||||
# actions. For example, if root and the 'jira' user exists then it
|
||||
@@ -153,6 +162,11 @@
|
||||
creates: "{{ atl_product_installation_versioned }}/.install4j/"
|
||||
become: true
|
||||
become_user: "{{ atl_product_user }}"
|
||||
when: atl_product_edition!= "crowd"
|
||||
|
||||
|
||||
- import_tasks: crowd_install.yml
|
||||
when: atl_product_edition == "crowd"
|
||||
|
||||
- name: Symlink the installed version to current
|
||||
file:
|
||||
@@ -160,3 +174,4 @@
|
||||
dest: "{{ atl_product_installation_current }}"
|
||||
state: link
|
||||
force: true
|
||||
when: atl_product_edition != "crowd"
|
||||
|
||||
Reference in New Issue
Block a user