ansible.builtin.installp (v2.9.27) — module

Manage packages on AIX

| "added in version" 2.8 of ansible.builtin"

Authors: Kairo Araujo (@kairoaraujo)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Manage packages using 'installp' on AIX

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install package foo
  installp:
    name: foo
    repository_path: /repository/AIX71/installp/base
    package_license: yes
    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
  installp:
    name: bos.sysmgt
    repository_path: /repository/AIX71/installp/base
    package_license: yes
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install bos.sysmgt.nim.master only
  installp:
    name: bos.sysmgt.nim.master
    repository_path: /repository/AIX71/installp/base
    package_license: yes
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install bos.sysmgt.nim.master and bos.sysmgt.nim.spot
  installp:
    name: bos.sysmgt.nim.master, bos.sysmgt.nim.spot
    repository_path: /repository/AIX71/installp/base
    package_license: yes
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove packages bos.sysmgt.nim.master
  installp:
    name: bos.sysmgt.nim.master
    state: absent

Inputs

    
name:
    aliases:
    - pkg
    description:
    - One or more packages to install or remove.
    - Use C(all) to install all packages available on informed C(repository_path).
    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