community.general.pkg5 (8.5.0) — module

Manages packages with the Solaris 11 Image Packaging System

Authors: Peter Oliver (@mavit)

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

IPS packages are the native packages in Solaris 11 and higher.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install Vim
  community.general.pkg5:
    name: editor/vim
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install Vim without refreshing publishers
  community.general.pkg5:
    name: editor/vim
    refresh: false
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove finger daemon
  community.general.pkg5:
    name: service/network/finger
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install several packages at once
  community.general.pkg5:
    name:
    - /file/gnu-findutils
    - /text/gnu-grep

Inputs

    
name:
    description:
    - An FRMI of the package(s) to be installed/removed/updated.
    - Multiple packages may be specified, separated by V(,).
    elements: str
    required: true
    type: list

state:
    choices:
    - absent
    - latest
    - present
    - installed
    - removed
    - uninstalled
    default: present
    description:
    - Whether to install (V(present), V(latest)), or remove (V(absent)) a package.
    type: str

be_name:
    description:
    - Creates a new boot environment with the given name.
    type: str

refresh:
    default: true
    description:
    - Refresh publishers before execution.
    type: bool

accept_licenses:
    aliases:
    - accept
    - accept_licences
    default: false
    description:
    - Accept any licences.
    type: bool