set a variable depending on the output of a task

Hi all,

I don’t seem to find a way to do the following, which probably means I’m trying to do it in some weird way.

I believe what you are attempting should work. But you seem to be missing reference to the “set_fact” module in the second task. “some-moudle-that-sets-vars” is the “set_fact” module, and should do what you want.

Thanks very much. I couldn’t find it probably because I kept thinking in terms of ‘variables’ instead of facts.