【问题标题】:What is the proper syntax for an ansible inventory file?ansible 库存文件的正确语法是什么?
【发布时间】:2013-12-17 19:00:02
【问题描述】:

这是我的inventory.yml 文件:

[hosts]
somedns1.aws.com
somedns2.aws.com
somedns3.aws.com
somedns4.aws.com
somedns5.aws.com

但我收到了--list ([Errno 8] Exec format error)

根据this link 看起来不错,知道吗?

【问题讨论】:

    标签: amazon-web-services yaml ansible


    【解决方案1】:

    您的库存文件可能是可执行的。 此外,库存文件不是 YAML 格式(因此您的库存扩展名具有误导性)。

    试试:

    mv inventory.yml inventory
    chmod a-x inventory
    

    应该会更好。

    【讨论】:

      猜你喜欢
      • 2020-11-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-19
      • 2018-11-14
      • 2019-09-07
      • 1970-01-01
      相关资源
      最近更新 更多