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

Manages packages with the Solaris 11 Image Packaging System

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

Authors: Peter Oliver (@mavit)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

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
  pkg5:
    name: editor/vim
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install Vim without refreshing publishers
  pkg5:
    name: editor/vim
    refresh: no
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove finger daemon
  pkg5:
    name: service/network/finger
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install several packages at once
  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 C(,).
    required: true

state:
    choices:
    - absent
    - latest
    - present
    default: present
    description:
    - Whether to install (I(present), I(latest)), or remove (I(absent)) a package.

be_name:
    description:
    - Creates a new boot environment with the given name.
    type: str
    version_added: '2.8'
    version_added_collection: ansible.builtin

refresh:
    default: true
    description:
    - Refresh publishers before execution.
    type: bool
    version_added: '2.8'
    version_added_collection: ansible.builtin

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