Parameter |
Choices/Defaults |
Comments |
---|---|---|
category
(added in 1.6) |
|
Install/Remove category instead of a single package.
|
name
required |
|
Package name, e.g.
SUNWcsr |
proxy
|
|
HTTP[s] proxy to be used if
src is a URL. |
response_file
|
|
Specifies the location of a response file to be used if package expects input on install. (added in Ansible 1.4)
|
src
|
|
Specifies the location to install the package from. Required when
state=present .Can be any path acceptable to the
pkgadd command's -d option. e.g.: somefile.pkg , /dir/with/pkgs , http:/server/mypkgs.pkg .If using a file or directory, they must already be accessible by the host. See the copy module for a way to get them there.
|
state
required |
|
Whether to install (
present ), or remove (absent ) a package.If the package is to be installed, then src is required.
The SVR4 package system doesn't provide an upgrade operation. You need to uninstall the old, then install the new package.
|
zone
(added in 1.6) |
|
Whether to install the package only in the current zone, or install it into all zones.
The installation into all zones works only if you are working with the global zone.
|
# Install a package from an already copied file
- svr4pkg:
name: CSWcommon
src: /tmp/cswpkgs.pkg
state: present
# Install a package directly from an http site
- svr4pkg:
name: CSWpkgutil
src: 'http://get.opencsw.org/now'
state: present
zone: current
# Install a package with a response file
- svr4pkg:
name: CSWggrep
src: /tmp/third-party.pkg
response_file: /tmp/ggrep.response
state: present
# Ensure that a package is not installed.
- svr4pkg:
name: SUNWgnome-sound-recorder
state: absent
# Ensure that a category is not installed.
- svr4pkg:
name: FIREFOX
state: absent
category: true
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
Hint
If you notice any issues in this documentation you can edit this document to improve it.