ansible / ansible.builtin / v2.4.0.0-1 / module / xbps Manage packages with XBPS | "added in version" 2.3 of ansible.builtin" Authors: Dino Occhialini (@dinoocch), Michael Aldridge (@the-maldridge) preview | supported by communityansible.builtin.xbps (v2.4.0.0-1) — module
pip
Install with pip install ansible==2.4.0.0.post1
Manage packages with the XBPS package manager.
# Install package foo - xbps: name=foo state=present
# Upgrade package foo - xbps: name=foo state=latest update_cache=yes
# Remove packages foo and bar - xbps: name=foo,bar state=absent
# Recursively remove package foo - xbps: name=foo state=absent recurse=yes
# Update package cache - xbps: update_cache=yes
# Upgrade packages - xbps: upgrade=yes
name: default: null description: - Name of the package to install, upgrade, or remove. required: false state: choices: - present - absent - latest default: present description: - Desired state of the package. required: false recurse: choices: - 'yes' - 'no' 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. required: false upgrade: choices: - 'yes' - 'no' default: false description: - Whether or not to upgrade whole system required: false update_cache: choices: - 'yes' - 'no' 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. required: false
msg: description: Message about results returned: success sample: System Upgraded type: string packages: description: Packages that are affected/would be affected returned: success sample: - ansible type: list