I’m converting our existing INI inventory to YAML. The reason is that I cannot seem to get variables like “{{ myvar }}” working within an INI inventory and have found no documentation that says INI format supports variables.
Now, we have a group defined as “DEV”. This worked in the INI format. HOWEVER, it causes errors in YAML format.
Thank you for your quick response. I was playing with the YAML indentation to see if that was a factor. It isn’t. So your example format causes the same issue. Export fails as well.
After playing around more, I can get vars to work in INI. I was simply missing quotes. <face_palm/> I think the issue is with the “ansible-inventory” command. If I run a playbook using “ansible-playbook” and the group named “DEV”, the vars work in INI and YAML. o_O?