ansible / ansible.builtin / v2.8.17 / lookup / env read the value of environment variables | "added in version" 0.9 of ansible.builtin" Authors: Jan-Piet Mens (@jpmens) <jpmens(at)gmail.com>ansible.builtin.env (v2.8.17) — lookup
pip
Install with pip install ansible==2.8.17
Allows you to query the environment variables available on the controller when you invoked Ansible.
- debug: msg="{{ lookup('env','HOME') }} is an environment variable"
_terms: description: Environment variable or list of them to lookup the values for required: true
_list: description: - values from the environment variables. type: list