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
+1 vote
asked Jan 16, 2020 in QuickTest Professional (QTP) by JackTerrance