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

1 Answer

0 votes

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 Nov 13, 2019 in Ansible by rajeshsharma
0 votes
asked Dec 21, 2020 in Informatica by SakshiSharma
+2 votes
asked May 8, 2020 in Ansible by SakshiSharma