# new module to gather facts from yml file

**URL:** <https://forum.ansible.com/t/new-module-to-gather-facts-from-yml-file/13276>\
**Category:** Ansible Project\
**Created:** [August 9, 2013, 10:41am UTC](https://forum.ansible.com/t/new-module-to-gather-facts-from-yml-file/13276 "2013-08-09T10:41:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yegor\_Minin](https://avatars.discourse-cdn.com/v4/letter/y/b9bd4f/32.png) [@Yegor\_Minin](https://forum.ansible.com/u/Yegor_Minin)\
**Post date:** [August 9, 2013, 10:41am UTC](https://forum.ansible.com/t/new-module-to-gather-facts-from-yml-file/13276/1 "2013-08-09T10:41:29Z")

</div>

Hi,  
I’ve written a module to gather facts and add them to ansible to consume later on. The module requires specifying a yaml file to get facts from and optionally a sub-dictionary in ansible\_facts to add those (default value is ‘yaml\_extra’).  
The way it has been used is to parse data from apps to be later used to configure external scripts and form templates.

Is there a value for someone else?  
Thanks,  
Yegor

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [August 9, 2013, 12:21pm UTC](https://forum.ansible.com/t/new-module-to-gather-facts-from-yml-file/13276/2 "2013-08-09T12:21:10Z")

</div>

Here’s a new feature in 1.3 you may like.

[http://jpmens.net/2013/06/17/a-very-welcome-addition-to-ansible-s-setup-module/](http://jpmens.net/2013/06/17/a-very-welcome-addition-to-ansible-s-setup-module/)

If you mean running it from local\_action, that feels a lot like “host\_vars/” and “group\_vars/” to me, which is already built in.

I’d be curious in hearing more about the use case.

Thanks!
