-
Notifications
You must be signed in to change notification settings - Fork 472
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
Constructed inventory #224
Comments
It's something I never heard of before to be honest, so I never built any official support in for it. It looks pretty powerful, so implementing support for this is not going to be easy. Currently ansible-cmdb uses its own host/var/fact parser. That's pretty clumsy, so I want to start using ansible's own parsers. There's a PR request open for that (#215) which I intend to review and merge. However, no garantuees for now that constructed inventories will be supported by that. Stay tuned... |
as a workaround, you could use |
@azrdev I tried generating a statiic inventory file as you described.
As far as I can tell, the resulting json file looks to be valid.
However, ansible-cmdb does throw errors when using the static json file.
I also tried with yaml as output but the errors are the same. |
@gasoo44 I do think so. Have you tried |
It seems that ansible-cmdb does not recognize my constructed inventory file as a dynamic inventory.
I followed the example from the ansible website: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/constructed_inventory.html
But when ansible-cmdb runs, it seems to think that the file inventory.config is a static inventory file and does not parse it correctly.
Are constructed inventories not supported or have I made a mistake?
Thanks
The text was updated successfully, but these errors were encountered: