Skip to content

Needlessly gathering facts - Performance issue #4376

@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.

scripts/remote-heal/heal_for_docker_use_too_much_memory.yml
scripts/remote-heal/heal_for_heartbeat.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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions