Bug 2078989
Summary: | All roles should support running with gather_facts: false | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Rich Megginson <rmeggins> | |
Component: | rhel-system-roles | Assignee: | Rich Megginson <rmeggins> | |
Status: | CLOSED ERRATA | QA Contact: | Jakub Haruda <jharuda> | |
Severity: | unspecified | Docs Contact: | Gabi Fialová <gfialova> | |
Priority: | unspecified | |||
Version: | 9.0 | CC: | gfialova, jharuda, nhosoi, spetrosi | |
Target Milestone: | rc | |||
Target Release: | 9.1 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | rhel-system-roles-1.19.1-1.el9 | Doc Type: | Enhancement | |
Doc Text: |
.RHEL System Roles now available also in playbooks with fact gathering disabled
Ansible fact gathering might be disabled in your environment for performance or other reasons. Previously, it was not possible to use RHEL System Roles in such configurations. With this update, the system detects the `ANSIBLE_GATHERING=explicit` parameter in your configuration and `gather_facts: false` parameter in your playbooks, and use the `setup:` module to gather only the facts required by the given role, if not available from the fact cache.
NOTE: If you have disabled Ansible fact gathering due to performance, you can enable Ansible fact caching instead, which does not cause a performance hit of retrieving them from source.
|
Story Points: | --- | |
Clone Of: | ||||
: | 2078999 2079008 (view as bug list) | Environment: | ||
Last Closed: | 2022-11-15 10:23:26 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 2078999, 2079008, 2079009, 2100558, 2100559, 2162788 |
Description
Rich Megginson
2022-04-26 16:30:29 UTC
Ansible by default will always gather facts in playbooks. In order to test, you can use https://docs.ansible.com/ansible/latest/reference_appendices/config.html#default-gathering to disable fact gathering by default. e.g. ANSIBLE_GATHERING=explicit ansible-playbook .... tests/tests_name.yml NOTE: All roles currently are fixed except for the metrics role - see https://bugzilla.redhat.com/show_bug.cgi?id=2078999 FEDORA-2022-2da3a47337 has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2022-d6e6c7c37c has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2022-671a5d63e6 has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (rhel-system-roles bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2022:8117 |