Found one solution: use "to_json" to convert the facts into string format, then pass this string into module.
Thanks jack On Tuesday, April 14, 2015 at 6:21:36 PM UTC-7, jack wrote: > > Hi All: > > We are trying to write some site custom modules, it requires to access > other facts generated from our custom modules. Anyone knows how to do it? > or is there a way to pass json objects to the module? > > Thanks > Jack > -- 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/4d1fe866-722b-42d1-9502-161dc69398ab%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
