Nov 5, 2019 in Ansible
Q: How do you access Shell Environment Variables?

1 Answer

0 votes
Nov 5, 2019
If you are just looking to access the existing variables then you can use “env” lookup plugin.

For example:

Accessing the value of Home environment variable on management machine:


Related questions

0 votes
May 14, 2020 in DevOps
0 votes
Nov 13, 2019 in Ansible