Loading custom facts
You can provide your own facts, as described inShould you develop a module?.  To run them, just make a call to your own custom fact gathering module at the top of your list of tasks, and the variables returned there will be accessible for future tasks: