Skip to content

Needlessly gathering facts - Performance issue #2525

@pemsith

Description

@pemsith
SUMMARY

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.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

Performance

ANSIBLE VERSION

ansible [core 2.15.8]

COLLECTION VERSION

latest

OS / ENVIRONMENT

Cent OS 9

STEPS TO REPRODUCE

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

tools/prepare_release.yml
tests/integration/targets/vmware_vm_inventory/prepare_environment.yml
tests/integration/targets/vmware_vm_inventory/test_inventory.yml

EXPECTED RESULTS

set gather_facts to false if facts aren't used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions