community.general.rpm_ostree_pkg – Install or uninstall overlay additional packages
Note
This plugin is part of the community.general collection (version 3.8.3).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.rpm_ostree_pkg
.
New in version 2.0.0: of community.general
Parameters
Parameter |
Comments |
---|---|
Name of overlay package to install or remove. |
|
State of the overlay package.
Choices:
|
Examples
- name: Install overlay package
community.general.rpm_ostree_pkg:
name: nfs-utils
state: present
- name: Remove overlay package
community.general.rpm_ostree_pkg:
name: nfs-utils
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Action performed. Returned: always Sample: “install” |
|
State changes. Returned: always Sample: true |
|
Full command used for performed action. Returned: always Sample: “rpm-ostree uninstall –allow-inactive –idempotent –unchanged-exit-77 nfs-utils” |
|
A list of packages specified. Returned: always Sample: [“nfs-utils”] |
|
Return code of rpm-ostree command. Returned: always Sample: 0 |
|
Stderr of rpm-ostree command. Returned: always Sample: “” |
|
Stdout of rpm-ostree command. Returned: always Sample: “Staging deployment…done\\n…” |
Authors
Dusty Mabe (@dustymabe)
Abhijeet Kasurde (@Akasurde)