# Inventory Existing Configuration

**URL:** <https://forum.ansible.com/t/inventory-existing-configuration/37926>\
**Category:** Ansible Project\
**Created:** [April 25, 2023, 10:58am UTC](https://forum.ansible.com/t/inventory-existing-configuration/37926 "2023-04-25T10:58:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Levan\_Medoshvili](https://avatars.discourse-cdn.com/v4/letter/l/ccd318/32.png) [@Levan\_Medoshvili](https://forum.ansible.com/u/Levan_Medoshvili)\
**Post date:** [April 25, 2023, 10:58am UTC](https://forum.ansible.com/t/inventory-existing-configuration/37926/1 "2023-04-25T10:58:23Z")

</div>

Hello

Is it possible to inventory existing configuration of device in yaml file?

For example I have RouterOS that is already configured and I want to create yaml file for this configuration.

I have tried to search but without luck.  
I hope I explained correctly

---

<div class="post-metadata">

**Author:** ![lee](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/lee/32/4857_2.png) [@lee](https://forum.ansible.com/u/lee)\
**Post date:** [April 27, 2023, 4:37am UTC](https://forum.ansible.com/t/inventory-existing-configuration/37926/2 "2023-04-27T04:37:17Z")

</div>

I don’t know if this is what you need.

Try putting

fact\_caching = community.general.yaml  
fact\_caching\_connection = /tmp/myfacts

in ~/.ansible.cfg  
in the [defaults] section
