Skip to content

feature: use ansible facts #422

Closed as not planned
Closed as not planned
@jackhodgkiss

Description

@jackhodgkiss

Some users of this role may desire to run the role with ainject_facts_as_vars = Falsein theiransible.cfg`.

The motivation of preventing facts being injected as variables would be to avoid performance penalties that would incurred by having 100s of variables per host within the global namespace.

Each use of ansible_ would be replaced with their ansible_facts counterpart such ansible_hostname be written as ansible_facts.hostname

https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_vars_facts.html#ansible-facts

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions