Inventory Existing Configuration

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

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