I want to be able to read the output from a specific task in the module I am creating.
To do this I am registering the output into a variable in my playbook and then sending this as a argument in my module.
The format of the variable is json, I am reading this in my python script as a string and trying to convert to json
this is where I am having problems. The json read as a string is not in the correct format (its in one line and has single quotes)
If there is a better way of reading the output from one module in another module I would like to hear about it.
Thanks for your help