community / community.general / 1.3.14 / module / pkgutil OpenCSW package management on Solaris Authors: Alexander Winkler (@dermute), David Ponessa (@scathatheworm)community.general.pkgutil (1.3.14) — module
Install with ansible-galaxy collection install community.general:==1.3.14
collections: - name: community.general version: 1.3.14
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.
- name: Install a package community.general.pkgutil: name: CSWcommon state: present
- name: Install a package from a specific repository community.general.pkgutil: name: CSWnrpe site: ftp://myinternal.repo/opencsw/kiel state: latest
- name: Remove a package community.general.pkgutil: name: CSWtop state: absent
- name: Install several packages community.general.pkgutil: name: - CSWsudo - CSWtop state: present
- name: Update all packages community.general.pkgutil: name: '*' state: latest
- name: Update all packages and force versions to match latest in catalog community.general.pkgutil: name: '*' state: latest force: yes
name: aliases: - pkg description: - The name of the package. - When using C(state=latest), this can be C('*'), 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 C(yes). - 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 (C(present)/C(installed)), or remove (C(absent)/C(removed)) packages. - The upgrade (C(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 C(yes). type: bool