[英]What is the proper syntax for an ansible inventory file?
This is my inventory.yml
file: 这是我的
inventory.yml
文件:
[hosts]
somedns1.aws.com
somedns2.aws.com
somedns3.aws.com
somedns4.aws.com
somedns5.aws.com
But I'm getting --list ([Errno 8] Exec format error)
但我得到
--list ([Errno 8] Exec format error)
It looks fine as per this link , any idea? 根据这个链接看起来很好,任何想法?
Your inventory file is probably executable. 您的库存文件可能是可执行的。 Also, inventory files are not in YAML format (hence extension for your inventory is misleading).
此外,库存文件不是YAML格式(因此您的库存扩展会产生误导)。
Try : 试试:
mv inventory.yml inventory
chmod a-x inventory
and it should be better. 它应该更好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.