community.general.pkg5 – Manages packages with the Solaris 11 Image Packaging System
Note
This plugin is part of the community.general collection (version 3.8.3).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.pkg5
.
Parameters
Parameter |
Comments |
---|---|
Accept any licences. Choices:
|
|
Creates a new boot environment with the given name. |
|
An FRMI of the package(s) to be installed/removed/updated. Multiple packages may be specified, separated by |
|
Refresh publishers before execution. Choices:
|
|
Whether to install (present, latest), or remove (absent) a package. Choices:
|
Notes
Note
The naming of IPS packages is explained at http://www.oracle.com/technetwork/articles/servers-storage-admin/ips-package-versioning-2232906.html.
Examples
- name: Install Vim
community.general.pkg5:
name: editor/vim
- name: Install Vim without refreshing publishers
community.general.pkg5:
name: editor/vim
refresh: no
- name: Remove finger daemon
community.general.pkg5:
name: service/network/finger
state: absent
- name: Install several packages at once
community.general.pkg5:
name:
- /file/gnu-findutils
- /text/gnu-grep
Authors
Peter Oliver (@mavit)