0 votes
in Ansible by
How do you access Shell Environment Variables?

1 Answer

0 votes
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
asked Feb 17, 2020 in Ansible by MBarbieri
0 votes
asked Nov 29, 2023 in Linux by JackTerrance