Hide Forgot
+++ This bug was initially created as a clone of Bug #2078989 +++ Description of problem: Some users use `gather_facts: false` in their playbooks, due to performance issues with fact gathering, or other reasons. However, this breaks system roles because almost all of them require some sort of facts like `os_family`, `distribution`, etc. to be defined. The system roles should work if fact gathering is disabled in the playbook. NOTE: This may require the user to enable fact caching, or simply not use the system roles if it is not possible to use fact gathering at all. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: --- Additional comment from Rich Megginson on 2022-04-26 16:41: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 --- Additional comment from Rich Megginson on 2022-04-26 17:06:32 UTC --- 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:7568