Problem scenario
You try to run a playbook. But you get a message like this: ‘fatal: … “AnsibleUndefinedVariable” ‘hadoop_env’ is undefined’. What should you do?
Root cause: a variable you defined (e.g., in a playbook or role) is not getting assigned when you run the playbook.
Possible solution #1
Find the vars directory or create it.
…
Continue reading “How Do You Troubleshoot the Ansible Error ‘”hadoop_env” is undefined’?”