ansible.posix.rhel_rpm_ostree module – Ensure packages exist in a RHEL for Edge rpm-ostree based system
This module is part of the ansible.posix collection (version 1.5.4).
You might already have this collection installed if you are using the
It is not included in
To check whether it is installed, run
ansible-galaxy collection list.
To install it, use:
ansible-galaxy collection install ansible.posix.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify:
New in ansible.posix 1.5.0
Compatibility layer for using the “package” module for RHEL for Edge systems utilizing the RHEL System Roles.
The below requirements are needed on the host that executes this module.
A package name or package specifier with version, like
Comparison operators for package version are valid here
If a previous version is specified, the task also needs to turn
When using state=latest, this can be
You can also pass a url or a local path to a rpm file (using state=present). To operate on several packages this can accept a comma separated string of packages or (as of 2.0) a list of packages.
Whether to install (
This module does not support installing or removing packages to/from an overlay as this is not supported by RHEL for Edge, packages needed should be defined in the osbuild Blueprint and provided to Image Builder at build time. This module exists only for
- name: Ensure htop and ansible are installed on rpm-ostree based RHEL
Common return values are documented here, the following are the fields unique to this module:
status of rpm transaction