While i try to grep/cut the url from my below debug output , I am unable to get the exact output. I tried with split, dict2items ,item2dicts to break it and grep the exact line .
If you get more verbose, you the the output with STDOUT and STDOUT_LINES. STDOUT_LINESis the closest you get for what you’re after. May be callback_plugin may help… not sure, never tried that.
Don’t parse the console output, use set_fact to fetch it.
The important question is: what does your debug command look like?
It all sounds like you should be doing something simpler earlier on…
yes… I was using set_fact and the output shown above is the debug output of the set_fact.
Still to fetch the URL alone from the output(debug) of the set_fact , and to set it as a new variable( using set_fact) … which is what i am looking for …
The setfact task has the contents of a keystone rc file .
However I got the result by writing it into a file , replace the string, read the required lines and then deleted the file …