Parameter | Choices/Defaults | Comments |
---|---|---|
accept_licenses boolean |
| Accept any licences. aliases: accept, accept_licences |
be_name string added in 2.8 | Creates a new boot environment with the given name. | |
name - / required | An FRMI of the package(s) to be installed/removed/updated. Multiple packages may be specified, separated by , . | |
refresh boolean added in 2.8 |
| Refresh publishers before execution. |
state - |
| Whether to install (present, latest), or remove (absent) a package. |
Note
- name: Install Vim pkg5: name: editor/vim - name: Install Vim without refreshing publishers pkg5: name: editor/vim refresh: no - name: Remove finger daemon pkg5: name: service/network/finger state: absent - name: Install several packages at once pkg5: name: - /file/gnu-findutils - /text/gnu-grep
Hint
If you notice any issues in this documentation, you can edit this document to improve it.
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.9/modules/pkg5_module.html