mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 08:53:07 -06:00
DCD-224: Refactor to simplify directory layout and testing.
This commit is contained in:
@@ -30,11 +30,27 @@
|
||||
mode: 0644
|
||||
force: false
|
||||
|
||||
- name: Create target version directory
|
||||
file:
|
||||
path: "{{ atl_product_installation_base }}/{{ atl_product_version_file.stdout }}"
|
||||
state: directory
|
||||
owner: "{{ atl_product_user }}"
|
||||
|
||||
- name: Unpack the product packages
|
||||
unarchive:
|
||||
remote_src: true
|
||||
src: "{{ atl_product_download }}"
|
||||
dest: "{{ atl_product_installation_dir }}"
|
||||
dest: "{{ atl_product_installation_base }}/{{ atl_product_version_file.stdout }}"
|
||||
owner: "{{ atl_product_user }}"
|
||||
group: "{{ atl_product_user }}"
|
||||
mode: 0755
|
||||
# Strip off the lead product/version specific directory to normaise naming
|
||||
extra_opts:
|
||||
- "--strip-components=1"
|
||||
|
||||
- name: Symlink the installed version to current
|
||||
file:
|
||||
src: "{{ atl_product_installation_base }}/{{ atl_product_version_file.stdout }}"
|
||||
dest: "{{ atl_product_installation_target }}"
|
||||
state: link
|
||||
force: true
|
||||
|
||||
Reference in New Issue
Block a user