community.general.installp (8.5.0) — module

Manage packages on AIX

Authors: Kairo Araujo (@kairoaraujo)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Manage packages using 'installp' on AIX

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install package foo
  community.general.installp:
    name: foo
    repository_path: /repository/AIX71/installp/base
    accept_license: true
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install bos.sysmgt that includes bos.sysmgt.nim.master, bos.sysmgt.nim.spot
  community.general.installp:
    name: bos.sysmgt
    repository_path: /repository/AIX71/installp/base
    accept_license: true
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install bos.sysmgt.nim.master only
  community.general.installp:
    name: bos.sysmgt.nim.master
    repository_path: /repository/AIX71/installp/base
    accept_license: true
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install bos.sysmgt.nim.master and bos.sysmgt.nim.spot
  community.general.installp:
    name: bos.sysmgt.nim.master, bos.sysmgt.nim.spot
    repository_path: /repository/AIX71/installp/base
    accept_license: true
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove packages bos.sysmgt.nim.master
  community.general.installp:
    name: bos.sysmgt.nim.master
    state: absent

Inputs

    
name:
    aliases:
    - pkg
    description:
    - One or more packages to install or remove.
    - Use V(all) to install all packages available on informed O(repository_path).
    elements: str
    required: true
    type: list

state:
    choices:
    - absent
    - present
    default: present
    description:
    - Whether the package needs to be present on or absent from the system.
    type: str

accept_license:
    default: false
    description:
    - Whether to accept the license for the package(s).
    type: bool

repository_path:
    description:
    - Path with AIX packages (required to install).
    type: path