Problem scenario
Ansible variables are not being picked up when the playbook runs. You may get no errors, or you may get errors like these:
“ERROR! Syntax Error while loading YAML…did not find expected key”
“ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path”
What should you do?
Possible Solution #1
Are you using the -i flag when you are running the command to execute the playbook?
…