Skip to content
Open
Show file tree
Hide file tree
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
15 changes: 14 additions & 1 deletion roles/installmq/tasks/Linux_installmq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,23 @@

- name: Create a list of paths to the packages from found files
ansible.builtin.set_fact:
package_list: "{{ package_files.results | map(attribute='files.0.path') | list }}"
package_list: "{{ package_list | default([]) + [item.files.0.path | string] }}"
loop:
"{{ package_files.results }}"
when:
- item.files is defined
- item.files | length > 0
- item.files.0.path is defined
- ansible_architecture == 'aarch64'


- name: Create a list of paths to the packages from found files
ansible.builtin.set_fact:
package_list: "{{ package_files.results.0 | map(attribute='files.0.path') | list }}"
when:
- "'MQSeriesRuntime' not in ansible_facts.packages"
- "'ibmmq-runtime' not in ansible_facts.packages"
- ansible_architecture != 'aarch64'

- name: Rpm Installation
ansible.builtin.dnf:
Expand Down