ansible / ansible.posix / 1.5.4 / module / rhel_rpm_ostree Ensure packages exist in a RHEL for Edge rpm-ostree based system | "added in version" 1.5.0 of ansible.posix" Authors: Adam Miller (@maxamillion) preview | supported by communityansible.posix.rhel_rpm_ostree (1.5.4) — module
Install with ansible-galaxy collection install ansible.posix:==1.5.4
collections: - name: ansible.posix version: 1.5.4
Compatibility layer for using the "package" module for RHEL for Edge systems utilizing the RHEL System Roles.
- name: Ensure htop and ansible are installed on rpm-ostree based RHEL ansible.posix.rhel_rpm_ostree: name: - htop - ansible state: present
name: aliases: - pkg default: [] description: - A package name or package specifier with version, like C(name-1.0). - Comparison operators for package version are valid here C(>), C(<), C(>=), C(<=). Example - C(name>=1.0) - If a previous version is specified, the task also needs to turn C(allow_downgrade) on. See the C(allow_downgrade) documentation for caveats with downgrading packages. - When using state=latest, this can be C('*') which means run C(yum -y update). - 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. elements: str type: list state: choices: - absent - installed - latest - present - removed description: - Whether to install (C(present) or C(installed), C(latest)), or remove (C(absent) or C(removed)) a package. - C(present) and C(installed) will simply ensure that a desired package is installed. - C(latest) will update the specified package if it's not of the latest available version. - C(absent) and C(removed) will remove the specified package. - Default is C(None), however in effect the default action is C(present) unless the C(autoremove) option is enabled for this module, then C(absent) is inferred. type: str
msg: description: status of rpm transaction returned: always sample: No changes made. type: str