Ansible playbook for configuration backup

Started by guest34985, March 15, 2023, 08:06:34 PM

Previous topic - Next topic
Hi everyone,

I am looking for a solution to retrieve the current OPNsense configuration from an Ansible host to have a backup. For my MikroTik devices I use net_get and sftp as a protocol in a playbook.

Is it possible to trigger a configuration backup via SSH (cli) and the fetch the xml file afterwards?

Thanks and best regards

I'd have a closer look at the os-api-backup plugin.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Thanks for the info. For now I simply fetch the /conf/config.xml via a simple Ansible playbook. But I will look into it.