Is it possible to force Ansible when replacing the var in yml files, which is undefined, throw out an error instead silently replaced by an empty string?
Force Ansible to throw out error when vars is missing in yml
ansible
ansible
Is it possible to force Ansible when replacing the var in yml files, which is undefined, throw out an error instead silently replaced by an empty string?
Best Answer
Yes, it is possible. Check the online documentation, under accessing complex variable data.
An example is provided to do exactly that: