community / community.general / 1.3.11 / module / xbps Manage packages with XBPS Authors: Dino Occhialini (@dinoocch), Michael Aldridge (@the-maldridge)community.general.xbps (1.3.11) — module
Install with ansible-galaxy collection install community.general:==1.3.11
collections: - name: community.general version: 1.3.11
Manage packages with the XBPS package manager.
- 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
name: aliases: - pkg - package description: - Name of the package to install, upgrade, or remove. elements: str type: list force: default: false description: - This option doesn't have any effect and is deprecated, it will be removed in 3.0.0. type: bool state: choices: - present - absent - latest - installed - removed default: present description: - Desired state of the package. type: str recurse: default: false description: - When removing a package, also remove its dependencies, provided that they are not required by other packages and were not explicitly installed by a user. type: bool upgrade: default: false description: - Whether or not to upgrade whole system type: bool update_cache: aliases: - update-cache default: true description: - Whether or not to refresh the master package lists. This can be run as part of a package installation or as a separate step. type: bool upgrade_xbps: default: true description: - Whether or not to upgrade the xbps package when necessary. Before installing new packages, xbps requires the user to update the xbps package itself. Thus when this option is set to C(no), upgrades and installations will fail when xbps is not up to date. type: bool version_added: 0.2.0 version_added_collection: community.general
msg: description: Message about results returned: success sample: System Upgraded type: str packages: description: Packages that are affected/would be affected returned: success sample: - ansible type: list