access the facts from the module

25 views
Skip to first unread message

jack

unread,
Apr 14, 2015, 9:21:36 PM4/14/15
to ansible...@googlegroups.com
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

jack

unread,
Apr 15, 2015, 3:26:48 PM4/15/15
to ansible...@googlegroups.com
Found one solution: use "to_json" to convert the facts into string format, then pass this string into module.

Thanks
jack
Reply all
Reply to author
Forward
0 new messages