# access the facts from the module

**URL:** <https://forum.ansible.com/t/access-the-facts-from-the-module/17979>\
**Category:** Ansible Project\
**Created:** [April 15, 2015, 1:21am UTC](https://forum.ansible.com/t/access-the-facts-from-the-module/17979 "2015-04-15T01:21:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jack1](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@jack1](https://forum.ansible.com/u/jack1)\
**Post date:** [April 15, 2015, 1:21am UTC](https://forum.ansible.com/t/access-the-facts-from-the-module/17979/1 "2015-04-15T01:21:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jack1](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@jack1](https://forum.ansible.com/u/jack1)\
**Post date:** [April 15, 2015, 7:26pm UTC](https://forum.ansible.com/t/access-the-facts-from-the-module/17979/2 "2015-04-15T19:26:48Z")

</div>

Found one solution: use “to\_json” to convert the facts into string format, then pass this string into module.

Thanks  
jack
