Add IBM MQ installation

main
Nils Gerstner 1 year ago
parent 3647260360
commit 64ad1c9e22

@ -0,0 +1,49 @@
# https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/mqadv_dev932_ubuntu_x86-64.tar.gz
- name: Download IBM MQ
ansible.builtin.get_url:
url: https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/mqadv_dev932_ubuntu_x86-64.tar.gz
dest: /opt/mqadv_dev932_ubuntu_x86-64.tar.gz
tags:
- ibmmqm
register: ibmmqm_download
- ansible.builtin.unarchive:
remote_src: yes
src: /opt/mqadv_dev932_ubuntu_x86-64.tar.gz
dest: /opt
name: Unachive IBM MQ
tags:
- ibmmqm
when: ibmmqm_download.changed
- ansible.builtin.apt_repository:
repo: "deb [trusted=yes] file:/opt/MQServer ./"
state: present
register: ibmmqm_source
name: Add local IBM MQ repository
register: ibmmqm_repo
tags:
- ibmmqm
when: ibmmqm_download.changed
- apt:
force_apt_get: true
state: present
update_cache: true
become: true
name: Update Apt
tags:
- ibmmqm
when: ibmmqm_download.changed
- apt:
name: [ "ibmmq-*" ]
register: ibmmqm_install
become: true
name: Install IBM MQ
tags:
- ibmmqm
when: ibmmqm_download.changed
- become: true
become_user: "{{my_user}}"
name: Accept IBM MQ license
shell: "/opt/mqm/bin/mqlicense -text_only -accept"
tags:
- ibmmqm
when: ibmmqm_download.changed
Loading…
Cancel
Save