.. _ansible.posix.rhel_facts_module: ************************ ansible.posix.rhel_facts ************************ **Facts module to set or override RHEL specific facts.** Version added: 1.5.0 .. contents:: :local: :depth: 1 Synopsis -------- - Compatibility layer for using the "package" module for rpm-ostree based systems via setting the "pkg_mgr" fact correctly. Requirements ------------ The below requirements are needed on the host that executes this module. - rpm-ostree See Also -------- .. seealso:: :ref:`ansible.builtin.package_module` The official documentation on the **ansible.builtin.package** module. Examples -------- .. code-block:: yaml - name: Playbook to use the package module on all RHEL footprints vars: ansible_facts_modules: - setup # REQUIRED to be run before all custom fact modules - ansible.posix.rhel_facts tasks: - name: Ensure packages are installed ansible.builtin.package: name: - htop - ansible state: present Returned Facts -------------- Facts returned by this module are added/updated in the ``hostvars`` host facts and can be referenced by name just like any other host fact. They do not need to be registered in order to use them. .. raw:: html
Fact Returned Description
pkg_mgr
string
when needed
System-level package manager override

Sample:
{'pkg_mgr': 'ansible.posix.rhel_facts'}


Status ------ Authors ~~~~~~~ - Adam Miller (@maxamillion)