0 votes
in Ansible by
What is the difference between the Variable Name and Environment Variable in Ansible?

1 Answer

0 votes
by

Variable Name                                                      Environment Variable

You need to add strings to create variable names.       You need existing variables to access                                                                                                    environment variables.

You can easily create multiple variable names by       To create environment variables, you must 

adding strings.                                                              refer to the advanced Ansible playbook.

Use the IPV4 address for variable names.             Use {{ansible_env.SOME_VARIABLE}} for remote                                                                         environment variables.

Related questions

0 votes
asked Jul 30, 2021 in Ansible by DavidAnderson
0 votes
asked Jan 26, 2023 in Ansible by AdilsonLima
...