ansible / ansible.builtin / v2.9.27 / module / svr4pkg Manage Solaris SVR4 packages | "added in version" 0.9 of ansible.builtin" Authors: Boyd Adamson (@brontitall) preview | supported by communityansible.builtin.svr4pkg (v2.9.27) — module
pip
Install with pip install ansible==2.9.27
Manages SVR4 packages on Solaris 10 and 11.
These were the native packages on Solaris <= 10 and are available as a legacy feature in Solaris 11.
Note that this is a very basic packaging system. It will not enforce dependencies on install or remove.
# 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
src: description: - Specifies the location to install the package from. Required when C(state=present). - 'Can be any path acceptable to the C(pkgadd) command''s C(-d) option. e.g.: C(somefile.pkg), C(/dir/with/pkgs), C(http:/server/mypkgs.pkg).' - If using a file or directory, they must already be accessible by the host. See the M(copy) module for a way to get them there. name: description: - Package name, e.g. C(SUNWcsr) required: true zone: choices: - current - all default: all description: - 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. required: false version_added: '1.6' version_added_collection: ansible.builtin proxy: description: - HTTP[s] proxy to be used if C(src) is a URL. state: choices: - present - absent description: - Whether to install (C(present)), or remove (C(absent)) a package. - If the package is to be installed, then I(src) is required. - The SVR4 package system doesn't provide an upgrade operation. You need to uninstall the old, then install the new package. required: true category: description: - Install/Remove category instead of a single package. required: false type: bool version_added: '1.6' version_added_collection: ansible.builtin response_file: description: - Specifies the location of a response file to be used if package expects input on install. (added in Ansible 1.4) required: false