我正在尝试开始使用Ansible和aws_ec2插件。
我的./ansible.cfg文件中有以下内容:
[inventory]
enable_plugins = aws_ec2在我的./inventory.yml文件中有以下内容:
plugin: aws_ec2
aws_access_key_id: **********
aws_secret_access_key: **********
regions:
- us-east-2当我运行ansible-inventory -i inventory.yml --graph时,会得到以下错误:
inventory.yml did not meet aws_ec2 requirements, check plugin documentation if this is unexpected
发布于 2019-02-07 07:41:54
截至不可接受的2.7.6:
aws_ec2库存文件名必须以“aws_ec2.yml”或“aws_ec2.yaml”结尾
证明。
因此,将您的inventory.yml重命名为inventory_aws_ec2.yml,您就可以开始了。
发布于 2022-08-29 17:39:09
只需将库存文件的名称更改为插件名即可。例如: a.yaml到aws_ec2.yaml
https://stackoverflow.com/questions/54563408
复制相似问题