0
fatal: [[email protected]]: FAILED! => {
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"aws_access_key": null,
"aws_secret_key": null,
"ec2_url": null,
"filters": {
"region": "us-east-1",
"vpc-id": "xxxxxxxxx"
},
"profile": null,
"region": null,
"security_token": null,
"validate_certs": true
}
},
"msg": "region must be specified"
}
我從相當長的一段時間收到上述錯誤,但我試圖從AWS中的特定實例收集有關VPC子網事實的詳細信息。任何人都可以請幫忙,如果我做錯了什麼?我已經通過了關於這個YML的知識並且基於這個知識創建了這個YML。試圖爲AWS中的實例收集VPC子網事實顯示錯誤
我YML文件看起來像:
---
- name: find vpc facts
hosts: webservers
gather_facts: True
tasks:
- name: vpc subnet facts
ec2_vpc_subnet_facts:
filters:
region: us-east-1
vpc-id: xxxxxxxx
register: subnet_facts