Correct way to reference env vars moving forward?
[WARNING]: Deprecation warnings can be disabled by setting `deprecation_warnings=False` in ansible.cfg.
[DEPRECATION WARNING]: INJECT_FACTS_AS_VARS default to `True` is deprecated, top-level facts will not be auto injected after the change. This feature will be removed from ansible-core version 2.24.
Origin: /Users/user/project/playbooks/agents/yoke-agent-setup.yml:5:11
3 hosts: my-host
4 environment:
5 PATH: "{{ ansible_env.HOME }}/.local/bin:{{ ansible_env.PATH }}"
^ column 11
Use `ansible_facts["fact_name"]` (no `ansible_` prefix) instead.
This warning is seemingly misleading, as ansible_facts['env'] does not exist. ansible_env[...] is also being deprecated. What is the correct way to reference these moving forward?