checking out the documentation, modules like set_fact and register have scope only for that specific host. There are many purpose of using the variables from one host to another.
Alternatives I can think of:
-
using Command module and echoing the variables to a file. Later, using the variable file using vars section or include.
-
Setting the env variables and then accessing it but this will be difficult.
So what is the solution?