Skip to content

ARM64 download role #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions roles/downloadmq/tasks/Linux_arm64_downloadmq.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
- name: Set filename of zip for arm64
ansible.builtin.set_fact:
zip_file: '{{ vrmf }}-IBM-MQ-Advanced-for-Developers-UbuntuLinuxARM64.tar.gz'


# Get the file if local source is false
- name: Download MQ Advanced for Developers
ansible.builtin.get_url:
url: "{{ downloadURL }}{{ zip_file }}"
dest: /var/mq.tar.gz
force: false
mode: "0644"
tags: download
when: not local_source

# Copy source to target if local source is true
- name: Copy local MQ source to target
ansible.builtin.copy:
src: "{{ mq_local_path }}"
dest: /var/mq.tar.gz
tags: download
when: local_source

- name: Extract MQ fom TAR
ansible.builtin.unarchive:
src: /var/mq.tar.gz
remote_src: true
dest: /var
tags: download