Hi,

I have a single playbook using one module to gather facts about ONE device 
and this works all good.  Upon execution, I register a variable and display 
several debug messages.  All good.  I added a second host to the hosts file 
and I'm now getting good debug info on both devices.  

My next task is to compare, or do a diff, on particular fact data from each 
device.  This diff would happen by sending both variables (facts) to 
another custom module to analyze.   I was going to do a single host per 
playbook and pass the registered variable to a 3rd playbook, but variables 
are only valid within the pb.  As an alternative, I suppose I can write the 
contents of the registered variable to a file in the first pb and the read 
from that in the second playbook, then do the needed comparisons, but that 
just doesn't seem right.

While this scenario is for custom facts, the same solution should hold true 
for the off the shelf facts too.

What would be the best approach for this? Any feedback would be greatly 
appreciated.

Thanks,
Jason

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/775d77c9-ada5-4359-856c-2e9805c79489%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to