How do I return data from powershell to ansible playbook

131 views
Skip to first unread message

Jaime Banda

unread,
Jan 26, 2015, 4:46:45 PM1/26/15
to ansible...@googlegroups.com
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.

Brian Coca

unread,
Jan 27, 2015, 4:06:10 PM1/27/15
to ansible...@googlegroups.com
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.




--
Brian Coca
Reply all
Reply to author
Forward
0 new messages