Sha*_*rop 2 amazon-ec2 ansible ansible-inventory
我正在尝试开始使用Ansible和aws_ec2插件。
我的./ansible.cfg文件中包含以下内容:
[inventory]
enable_plugins = aws_ec2
Run Code Online (Sandbox Code Playgroud)
以及我./inventory.yml文件中的以下内容:
plugin: aws_ec2
aws_access_key_id: **********
aws_secret_access_key: **********
regions:
- us-east-2
Run Code Online (Sandbox Code Playgroud)
当我运行时ansible-inventory -i inventory.yml --graph,出现以下错误:
inventory.yml did not meet aws_ec2 requirements, check plugin documentation if this is unexpected
| 归档时间: |
|
| 查看次数: |
625 次 |
| 最近记录: |