Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Ansible playbook for configuration backup
« previous
next »
Print
Pages: [
1
]
Author
Topic: Ansible playbook for configuration backup (Read 1014 times)
guest34985
Guest
Ansible playbook for configuration backup
«
on:
March 15, 2023, 08:06:34 pm »
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
Logged
Patrick M. Hausen
Hero Member
Posts: 6841
Karma: 574
Re: Ansible playbook for configuration backup
«
Reply #1 on:
March 15, 2023, 09:42:37 pm »
I'd have a closer look at the os-api-backup plugin.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
guest34985
Guest
Re: Ansible playbook for configuration backup
«
Reply #2 on:
March 16, 2023, 01:03:36 pm »
Thanks for the info. For now I simply fetch the /conf/config.xml via a simple Ansible playbook. But I will look into it.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Ansible playbook for configuration backup