Skip to content
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

How to generate output from static vars host_vars #195

Open
asmanea opened this issue Apr 10, 2019 · 1 comment
Open

How to generate output from static vars host_vars #195

asmanea opened this issue Apr 10, 2019 · 1 comment
Labels
needs feedback Requires more feedback from the reporter question

Comments

@asmanea
Copy link

asmanea commented Apr 10, 2019

I'm trying to generate an output using statically defined values in host_vars and group_vars, instead of using ansible_facts, and seems that i'm doing it wrong.
My devices are not linux devices, but network devices (Cisco, Juniper). Some of the details that i want to export are included in ios_facts or junos_facts module, but i was hoping to make use of static vars from host_vars in order to generate the output.
I was looking at issue #182, tried Custom Template by adding a new column, but seems that it's not generating any output.

Most of the errors are related to "No JSON object could be decoded"

Is there any way to generate the output for cmdb from static_files? Worth to mention that vars file is in YAML format.

Thanks!

@fboender
Copy link
Owner

fboender commented Sep 5, 2021

Var files in YAML format shouldn't be a problem I think. I'll need a bit more information in order to properly address this issue. Can you show me which command you're running and some (samples) of input files / data?

@fboender fboender added needs feedback Requires more feedback from the reporter question labels Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs feedback Requires more feedback from the reporter question
Projects
None yet
Development

No branches or pull requests

2 participants