# overriding built-in inventory collection scripts

**URL:** <https://forum.ansible.com/t/overriding-built-in-inventory-collection-scripts/31729>\
**Category:** Ansible Developer\
**Created:** [November 26, 2019, 10:05pm UTC](https://forum.ansible.com/t/overriding-built-in-inventory-collection-scripts/31729 "2019-11-26T22:05:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Jorgensen](https://avatars.discourse-cdn.com/v4/letter/e/a87d85/32.png) [@Eric\_Jorgensen](https://forum.ansible.com/u/Eric_Jorgensen)\
**Post date:** [November 26, 2019, 10:05pm UTC](https://forum.ansible.com/t/overriding-built-in-inventory-collection-scripts/31729/1 "2019-11-26T22:05:16Z")

</div>

Hello,

I would like to use some of my own routines to override the built-in inventory collection scripts. For example, the default gather facts for raspberry pi shows debian for OS, and I’d like it to use /proc/device-tree/model for the model. For other platforms, I’d like to use output from dmidecode. Please let me know the best way to supersede these built-ins with my own code.

I’d like to make this transparent so that I can use the ansible -m setup and ansible-cmdb commands as usual.

Thanks in advance,

jorgy
