Does anyone had an experience to use imc_rest module ? I’m trying to get information or output about hardware inventory . Say for example, I have equipmentPsu to check PSU status. however, the output is not showing when I run my playbook. is there a way to filter the attributes?
I think you need to register the result of this module and then to some operation on it.
Such as debug to display it.
This is not specific to the imc_rest module:
You're mixing up things, by using a vars argument that includes the
entire json_query filter itself, and then doing json_query on that,
which fails.
Either use a vars argument correctly, or don't use it at all.
See the examples on https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#selecting-json-data-json-queries.
I would only use a vars argument if the query contains variables
itself, or lots of backticks etc.
This case does not warrant that.