Note
This plugin is part of the community.general collection.
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.pkgutil
.
Parameter | Choices/Defaults | Comments |
---|---|---|
force boolean added in 1.2.0 of community.general |
| To allow the update process to downgrade packages to match what is present in the repository, set this to yes .This is useful for rolling back to stable from testing, or similar operations. |
name list / elements=string / required | The name of the package. When using state=latest , this can be '*' , which updates all installed packages managed by pkgutil.aliases: pkg | |
site string | The repository path to install the package from. Its global definition is in /etc/opt/csw/pkgutil.conf . | |
state string / required |
| Whether to install ( present /installed ), or remove (absent /removed ) packages.The upgrade ( latest ) operation will update/install the packages to the latest version available. |
update_catalog boolean |
| If you always want to refresh your catalog from the mirror, even when it's not stale, set this to yes . |
Note
/var/opt/csw/pkgutil
may be refreshed even in check mode.- 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
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/general/pkgutil_module.html