DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

Roy
Roy

Posted on

Valid file extensions for ansible inventory

I put 3 inventory file under directory /etc/ansible/hosts ๏ผŒthe file extension is .ini, but the result of ansible command show that this files are not recognized as inventory file.

quote from official document

Host and group variable files must use YAML syntax. Valid file extensions include โ€˜.ymlโ€™, โ€˜.yamlโ€™, โ€˜.jsonโ€™, or no file extension.

Top comments (0)

All DEV content is created by the community!

Hey, if you're landing here for the first time, you should know that this website is a global community of folks who blog about their experiences to help folks like you out.

Sign up now if you're curious. It's free!