In your win_shell command add “| ConvertTo-Json” to the end. That will pipe the
output into a json string which you can then use the from_json filter in
Ansible to turn it into a dict.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To
Hi Team,
Greetings of the day!!!
Is there any *module *or *plugin *available through which we can convert
the *stdout_lines *of a *win_shell *output into *json *data.
if it is available can you help me how to use it.
Below is my powershell command output coming in ansible result.