-
Notifications
You must be signed in to change notification settings - Fork 475
ec2.py dynamic inventory fails #187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey Rob! I think the problem is related to this part of the output
It look like ansible-cmdb can't find the script. Can you try prepending the script with "./", like so:
Ansible-cmdb currently only understands json output if it came from the output of a script, but not as input to the |
Could also be possible that you need to specify the full path to the script. Something like:
|
Tried
|
Tried the markdown output and it runs but just outputs each host with 'No info collected' I added a debug and the data is a long list of:
|
Okay, so it looks like it's running the script now at least:
Could you send the raw output (just redirect it to a file) of the script to [email protected] so I can analyse it? I don't have access to EC2, so I can't generate any myself. The output will be treated 100% confidentially and I'll remove all traces of it when I'm done debugging the issue. If you want, you can anonymize it before sending. |
Looks like ec2.py gets |
FYI my use case is to automate a scan of the AWS account and produce a reliable list of all hosts and groups for staff reference and for inventory. |
Uh oh!
There was an error while loading. Please reload this page.
When i use the ec2.py dynamic inventory script I get a failure:
The same ec2.py script (from https://docs.ansible.com/ansible/2.4/intro_dynamic_inventory.html#example-aws-ec2-external-inventory-script) runs fine on the commandline, I piped the output to ec2.json and its fine.
So I tried using the ec2.json file, much the same problem:
The text was updated successfully, but these errors were encountered: