[WARNING]: Unable to parse /home/dishant/Projects/nodejs-ansible/ec2-hosts.yaml as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
This is the error I am getting while fetching the inventory
[WARNING]: Unable to parse /home/dishant/nodejs-ansible/aws_ec2.yml as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
{
"_meta": {
"hostvars": {}
},
"all": {
"children": [
"ungrouped"
]
}
}
This is the error I am getting while fetching the inventory
Please check one of the following
Still, I am not able to get it working.
Output of Describe Instances:
Output of
ansible-inventory -i aws_ec2.yml --list
Did you install aws_ec2 plugin? Read more here: docs.ansible.com/ansible/latest/co...
Plus, it requires boto3 and botocore python modules.
Thanks! its working, actually the issue was with the file name, as mentioned in the given documentation its should end end with aws_ec2.(yml/yaml)
Great!