Skip to content

Needlessly gathering facts - Performance issue #9663

@pemsith

Description

@pemsith

Describe the bug
Since by default Ansible plays gather facts from all hosts, if you are not using any facts in tasks gather_facts should be set to false. There are multiple scripts where ansible facts are gathered but not used, which will be a performance issue.

To Reproduce
go to the below scripts and check. there are plays that gather facts but dont use.

ansible/configs/hacluster-breakfix1-pntae/ipmi.yml
ansible/configs/hacluster-breakfix1-pntae/node-install.yml
ansible/configs/hacluster-breakfix1-pntae/iscsiserver.yml
ansible/configs/hacluster-breakfix1-pntae/post_infra.yml
ansible/configs/hacluster-breakfix1-pntae/run-node-install.yml
ansible/configs/ansible-automation-platform/pre_infra.yml
ansible/configs/ansible-multitier-infra/pre_software.yml
ansible/configs/ansible-multitier-rhel8/pre_software.yml
ansible/configs/ansible-tower-implementation/software.yml
ansible/configs/ocp-clientvm/pre_software.yml

Expected behavior
set gather_facts to false if facts aren't used.

Verions (please complete the following information):
Cent OS 9
ansible [core 2.15.8]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions