We will use ansible to manage Windows servers, I want to return data from my powershell scripts to the playbook that is executing the script, How can I return data from the PS script? I only know that i need to return a json object.
that is pretty much it, ansible expects a couple of things in that
json, like failed: true, in case of error changed: true|false as
feedback, then the rest can be anything you want, to use this return
value you just need to register it to a variable.