geerlingguy / ansible-role-docker

Ansible Role - Docker
https://galaxy.ansible.com/geerlingguy/docker/
MIT License
1.8k stars 851 forks source link

feature: use ansible facts #422

Closed jackhodgkiss closed 5 months ago

jackhodgkiss commented 11 months ago

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

github-actions[bot] commented 7 months ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

github-actions[bot] commented 5 months ago

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

jackhodgkiss commented 5 months ago

This just needs the following PR merged.

https://github.com/geerlingguy/ansible-role-docker/pull/423