merative.spm_middleware.iim_info (1.5.6) — module

List packages installed by IBM Installation Manager

| "added in version" 0.1.4 of merative.spm_middleware"

Authors: Andrey Zhereshchin (@andrey-zhereshchin)

Install collection

Install with ansible-galaxy collection install merative.spm_middleware:==1.5.6


Add to requirements.yml

  collections:
    - name: merative.spm_middleware
      version: 1.5.6

Description

See what packages are installed by IBM Installation Manager.

If C(product_id) is provided, check if that specific package is installed.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
---
- name: Check packages
  iim_info:
    iim_path: /opt/IBM/InstallationManager
    product_id: com.ibm.websphere.liberty.ND
  register: iim_info
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install Liberty base (GA) product
  include_tasks: base_install.yml
  when: not iim_info.base_installed

Inputs

    
iim_path:
    default: /opt/IBM/InstallationManager
    description:
    - Absolute path to an existing installation of IBM Installation Manager
    type: path

product_id:
    description:
    - May be product family, or a specific product ID instance (including FixPack details)
    elements: str
    type: list

Outputs

base_installed:
  description: Indicator if the product is installed.
  returned: always
  type: str
exact_installed:
  description: Indicator if the exact version of the product is installed.
  returned: when supported
  type: str
packages:
  description: List of installed packages.
  elements: str
  returned: always
  type: list