Hi,
I’ve got a script that can produce JSON output and would like to register that output as a variable. I know it sounds lot like module but it isn’t. It’s a generic tool that can operate with or without ansible.
I have come across one post http://jpmens.net/2012/08/30/ansible-variables-variables-and-more-variables/ that deals with a similar issue, but it uses Jinja to cut through some filtering:
set t = v.stdout|from_json
so it can be used later.
Am I stuck with making my script into a module or can I creatively use what I have and avoid writing module.