community.general.pkgutil (8.5.0) — module

OpenCSW package management on Solaris

Authors: Alexander Winkler (@dermute), David Ponessa (@scathatheworm)

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

This module installs, updates and removes packages from the OpenCSW project for Solaris.

Unlike the M(community.general.svr4pkg) module, it will resolve and download dependencies.

See U(https://www.opencsw.org/) for more information about the project.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install a package
  community.general.pkgutil:
    name: CSWcommon
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install a package from a specific repository
  community.general.pkgutil:
    name: CSWnrpe
    site: ftp://myinternal.repo/opencsw/kiel
    state: latest
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove a package
  community.general.pkgutil:
    name: CSWtop
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install several packages
  community.general.pkgutil:
    name:
    - CSWsudo
    - CSWtop
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Update all packages
  community.general.pkgutil:
    name: '*'
    state: latest
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Update all packages and force versions to match latest in catalog
  community.general.pkgutil:
    name: '*'
    state: latest
    force: true

Inputs

    
name:
    aliases:
    - pkg
    description:
    - The name of the package.
    - When using O(state=latest), this can be V('*'), which updates all installed packages
      managed by pkgutil.
    elements: str
    required: true
    type: list

site:
    description:
    - The repository path to install the package from.
    - Its global definition is in C(/etc/opt/csw/pkgutil.conf).
    required: false
    type: str

force:
    default: false
    description:
    - To allow the update process to downgrade packages to match what is present in the
      repository, set this to V(true).
    - This is useful for rolling back to stable from testing, or similar operations.
    type: bool
    version_added: 1.2.0
    version_added_collection: community.general

state:
    choices:
    - absent
    - installed
    - latest
    - present
    - removed
    description:
    - Whether to install (V(present)/V(installed)), or remove (V(absent)/V(removed)) packages.
    - The upgrade (V(latest)) operation will update/install the packages to the latest
      version available.
    required: true
    type: str

update_catalog:
    default: false
    description:
    - If you always want to refresh your catalog from the mirror, even when it's not stale,
      set this to V(true).
    type: bool