community.general.xbps – Manage packages with XBPS¶
Note
This plugin is part of the community.general collection (version 1.3.6).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.xbps
.
Parameters¶
Examples¶
- name: Install package foo (automatically updating the xbps package if needed)
community.general.xbps: name=foo state=present
- name: Upgrade package foo
community.general.xbps: name=foo state=latest update_cache=yes
- name: Remove packages foo and bar
community.general.xbps: name=foo,bar state=absent
- name: Recursively remove package foo
community.general.xbps: name=foo state=absent recurse=yes
- name: Update package cache
community.general.xbps: update_cache=yes
- name: Upgrade packages
community.general.xbps: upgrade=yes
- name: Install a package, failing if the xbps package is out of date
community.general.xbps:
name: foo
state: present
upgrade_xbps: no
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
msg
string
|
success |
Message about results
Sample:
System Upgraded
|
packages
list
/ elements=string
|
success |
Packages that are affected/would be affected
Sample:
['ansible']
|
Authors¶
Dino Occhialini (@dinoocch)
Michael Aldridge (@the-maldridge)