The standard package manager for SmartOS, but also usable on NetBSD or any OS that uses pkgsrc
. (Home: http://pkgin.net/)
parameter | required | default | choices | comments |
---|---|---|---|---|
name |
no | Name of package to install/remove; multiple names may be given, separated by commas | ||
state |
no | present |
|
Intended state of the package |
update_cache (added in 2.1) |
no |
|
Update repository database. Can be run with other steps or on it's own. |
# install package foo - pkgin: name=foo state=present # Update database and install "foo" package - pkgin: name=foo update_cache=yes # remove package foo - pkgin: name=foo state=absent # remove packages foo and bar - pkgin: name=foo,bar state=absent # Update repositories as a separate step - pkgin: update_cache=yes
Note
Known bug with pkgin < 0.8.0: if a package is removed and another package depends on it, the other package will be silently removed as well. New to Ansible 1.9: check-mode support.
For more information on what this means please read Extras Modules
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Helping Testing PRs and Developing Modules.