mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 00:13:09 -06:00
ITPLT-3591 switch to using the get_url module
This commit is contained in:
@@ -27,21 +27,35 @@
|
||||
tags:
|
||||
- runtime_pkg
|
||||
|
||||
- name: download the mesh distribution using maven
|
||||
community.general.maven_artifact:
|
||||
artifact_id: "mesh-distribution"
|
||||
# Fetch binary and copy to temp
|
||||
# optionally use basic_auth creds from secrets_manager
|
||||
- name: Fetch binary
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ atl_product_download_url }}"
|
||||
dest: "{{ mesh_install_dir }}"
|
||||
extension: "tar.gz"
|
||||
group_id: "com.atlassian.bitbucket.mesh"
|
||||
keep_name: yes
|
||||
password: "{{ download_atlassian_password | default(omit) }}"
|
||||
repository_url: "{{ bitbucket_mesh_maven_repo }}"
|
||||
username: "{{ download_atlassian_username | default(omit) }}"
|
||||
version: "{{ atl_product_version }}"
|
||||
mode: "0644"
|
||||
owner: "{{ atl_product_user_uid }}"
|
||||
group: "{{ atl_product_user_uid }}"
|
||||
register: maven_download
|
||||
url_password: "{{ download_atlassian_password | default(omit) }}"
|
||||
url_username: "{{ download_atlassian_username | default(omit) }}"
|
||||
owner: "{{ atl_product_user }}"
|
||||
group: "{{ atl_product_user }}"
|
||||
mode: 0644
|
||||
force: false
|
||||
register: atl_product_completed
|
||||
|
||||
# - name: download the mesh distribution using maven
|
||||
# community.general.maven_artifact:
|
||||
# artifact_id: "mesh-distribution"
|
||||
# dest: "{{ mesh_install_dir }}"
|
||||
# extension: "tar.gz"
|
||||
# group_id: "com.atlassian.bitbucket.mesh"
|
||||
# keep_name: yes
|
||||
# password: "{{ download_atlassian_password | default(omit) }}"
|
||||
# repository_url: "{{ bitbucket_mesh_maven_repo }}"
|
||||
# username: "{{ download_atlassian_username | default(omit) }}"
|
||||
# version: "{{ atl_product_version }}"
|
||||
# mode: "0644"
|
||||
# owner: "{{ atl_product_user_uid }}"
|
||||
# group: "{{ atl_product_user_uid }}"
|
||||
# register: maven_download
|
||||
|
||||
- name: extract the downloaded artifact
|
||||
ansible.builtin.unarchive:
|
||||
|
||||
Reference in New Issue
Block a user