-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix all ansible-lint errors * update lint based on recent commits * linux (rhel) lint fixes * delete unused playbook testmod.yml * update windows script on winstall.md and remove hardcoded download path for AIX --------- Co-authored-by: Benjamin Brunyee <benjamin.brunyee@ibm.com>
- Loading branch information
1 parent
71801a9
commit 7243a4a
Showing
45 changed files
with
764 additions
and
738 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
- name: Install and setup IBM MQ | ||
hosts: ['servers'] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
- hosts: "{{ ansible_play_batch }}" | ||
--- | ||
- hosts: "{{ ansible_play_batch }}" | ||
serial: 1 | ||
become: yes | ||
become: true | ||
environment: | ||
PATH: /opt/mqm/bin:{{ ansible_env.PATH }} | ||
|
||
roles: | ||
roles: | ||
- role: setupusers | ||
vars: | ||
appUid: 909 | ||
app_uid: 909 | ||
gid: 909 | ||
appGid: 909 | ||
mqmHome: /home/mqm | ||
mqmProfile: .profile | ||
app_gid: 909 | ||
mqm_home: /home/mqm | ||
mqm_profile: .profile | ||
- role: downloadmq | ||
vars: | ||
version: 930 | ||
downloadURL: "https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/" | ||
- role: installmq | ||
downloadURL: https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/ | ||
- role: installmq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
--- | ||
- hosts: "{{ ansible_play_hosts }}" | ||
serial: 1 | ||
become: yes | ||
become_user: mqm | ||
become: true | ||
become_user: mqm | ||
environment: | ||
PATH: /opt/mqm/bin:{{ ansible_env.PATH }} | ||
|
||
roles: | ||
roles: | ||
- getconfig | ||
- setupconsole | ||
- startconsole | ||
|
||
tasks: | ||
|
||
- name: Create a queue manager | ||
queue_manager: | ||
qmname: | ||
- 'QM1' | ||
- 'QM2' | ||
state: 'present' | ||
qmname: | ||
- QM1 | ||
- QM2 | ||
state: present | ||
|
||
- name: Start a queue manager | ||
queue_manager: | ||
qmname: | ||
- 'QM1' | ||
- 'QM2' | ||
state: 'running' | ||
- QM1 | ||
- QM2 | ||
state: running | ||
|
||
- name: Run MQSC File | ||
queue_manager: | ||
qmname: | ||
- 'QM1' | ||
- 'QM2' | ||
state: 'running' | ||
mqsc_file: '/var/mqm/dev-config.mqsc' | ||
- QM1 | ||
- QM2 | ||
state: running | ||
mqsc_file: /var/mqm/dev-config.mqsc |
8 changes: 3 additions & 5 deletions
8
ansible_collections/ibm/ibmmq/roles/downloadmq/tasks/AIX_downloadmq.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
--- | ||
|
||
- name: Download MQ Advanced for Developers | ||
copy: | ||
src : /Users/moalatoum/Downloads/mq-ansible/9.3.0.0-IBM-MQTRIAL-AixPPC64.tar.Z | ||
copy: | ||
src: /Users/<your-user>/Downloads/9.3.0.0-IBM-MQTRIAL-AixPPC64.tar.Z | ||
dest: ~/tmp/ | ||
|
||
|
||
mode: "0644" |
14 changes: 7 additions & 7 deletions
14
ansible_collections/ibm/ibmmq/roles/downloadmq/tasks/Linux_downloadmq.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
--- | ||
|
||
- name: Set filename of zip if target host is Ubuntu | ||
set_fact: | ||
zipFile: "mqadv_dev{{ version }}_ubuntu_x86-64.tar.gz" | ||
zip_file: mqadv_dev{{ version }}_ubuntu_x86-64.tar.gz | ||
when: ansible_distribution == 'Ubuntu' | ||
|
||
- name: Set filename of zip if target host is RedHat | ||
set_fact: | ||
zipFile: "mqadv_dev{{ version }}_linux_x86-64.tar.gz" | ||
zip_file: mqadv_dev{{ version }}_linux_x86-64.tar.gz | ||
when: ansible_distribution == 'RedHat' | ||
|
||
- name: Download MQ Advanced for Developers | ||
get_url: | ||
url: "{{ downloadURL }}{{ zipFile }}" | ||
url: "{{ downloadURL }}{{ zip_file }}" | ||
dest: /var/mq.tar.gz | ||
force: no | ||
force: false | ||
mode: "0644" | ||
tags: download | ||
|
||
- name: Extract MQ fom TAR | ||
unarchive: | ||
src: /var/mq.tar.gz | ||
remote_src: yes | ||
remote_src: true | ||
dest: /var | ||
tags: download | ||
tags: download |
13 changes: 6 additions & 7 deletions
13
ansible_collections/ibm/ibmmq/roles/downloadmq/tasks/Win32NT_downloadmq.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
--- | ||
|
||
- name: Set filename of zip if target host is Windows | ||
set_fact: | ||
zipFile: "mqadv_dev{{ version }}_windows.zip" | ||
zipFile: mqadv_dev{{ version }}_windows.zip | ||
when: ansible_os_family == 'Windows' | ||
|
||
- name: Download MQ Advanced for Developers on Windows | ||
ansible.windows.win_get_url: | ||
url: "{{ downloadURL }}{{ zipFile }}" | ||
dest: '{{ directory }}\mq.zip' | ||
force: no | ||
dest: "{{ directory }}\\mq.zip" | ||
force: false | ||
tags: download | ||
when: ansible_os_family == 'Windows' | ||
|
||
- name: Unzip MQ on Windows | ||
community.windows.win_unzip: | ||
src: '{{ directory }}\mq.zip' | ||
remote_src: yes | ||
dest: '{{ directory }}\mq-install' | ||
src: "{{ directory }}\\mq.zip" | ||
remote_src: true | ||
dest: "{{ directory }}\\mq-install" | ||
tags: download | ||
when: ansible_os_family == 'Windows' |
4 changes: 0 additions & 4 deletions
4
ansible_collections/ibm/ibmmq/roles/downloadmq/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
--- | ||
|
||
- name: Including the vars for this platform | ||
include_vars: "{{ ansible_system }}_{{ role_name }}.yml" | ||
|
||
- name: Including the task list for this platform | ||
include_tasks: "{{ ansible_system }}_{{ role_name }}.yml" | ||
|
||
|
||
|
2 changes: 1 addition & 1 deletion
2
ansible_collections/ibm/ibmmq/roles/downloadmq/vars/AIX_downloadmq.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
--- | ||
version: 930 | ||
downloadURL: "https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/" | ||
downloadURL: https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/ |
2 changes: 1 addition & 1 deletion
2
ansible_collections/ibm/ibmmq/roles/downloadmq/vars/Linux_downloadmq.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
--- | ||
version: 930 | ||
downloadURL: "https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/" | ||
downloadURL: https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/ |
5 changes: 3 additions & 2 deletions
5
ansible_collections/ibm/ibmmq/roles/downloadmq/vars/Win32NT_downloadmq.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
version: 930 | ||
downloadURL: "https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/" | ||
directory: C:\Users\Administrator | ||
downloadURL: https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/ | ||
directory: C:\Users\Administrator |
4 changes: 2 additions & 2 deletions
4
ansible_collections/ibm/ibmmq/roles/getconfig/tasks/AIX_getconfig.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
|
||
- name: Copy developer config file to target | ||
become: true | ||
copy: | ||
src: ../../../dev-config.mqsc | ||
dest: "/tmp/dev-config.mqsc" | ||
dest: /tmp/dev-config.mqsc | ||
mode: "0644" |
5 changes: 3 additions & 2 deletions
5
ansible_collections/ibm/ibmmq/roles/getconfig/tasks/Linux_getconfig.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
|
||
--- | ||
- name: Copy developer config file to target | ||
copy: | ||
src: ../../../dev-config.mqsc | ||
dest: "/var/mqm" | ||
dest: /var/mqm | ||
mode: "0644" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
--- | ||
|
||
- name: Including the task list for this platform | ||
include_tasks: "{{ ansible_system }}_{{ role_name }}.yml" | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.