Closed teamsmiley closed 1 year ago
Hi @teamsmiley
Sure. We have a module called 'backup full config' to download all configs at once.
This is the FAQ link in which you can find examples for this module. https://ansible-galaxy-fortiswitch-docs.readthedocs.io/en/galaxy-1.1.0/faq.html
I hope this helps, but let me know if you have any questions.
ERROR! couldn't resolve module/action 'fortiswitch_execute_backup_default_config'. This often indicates a misspelling, missing collection, or incorrect module path.
i get this error . i installed collection already
do you have any idea?
oh 1.1.0 work. but i dont get any output.
- name: "Backup Switch's Full Configuration"
fortiswitch_execute_backup_full_config:
enable_log: yes
execute_backup_full_config:
config: default
- name: "default config backup"
fortiswitch_execute_backup_default_config:
enable_log: yes
execute_backup_default_config:
config: test
what is config?
@teamsmiley
Did you try the latest version 1.1.0? ansible-galaxy collection install fortinet.fortiswitch:1.1.0
You will get the results as follows:
You can use Ansible modules 'register' and 'copy' to save the backup info.
FYI, we have an example of using 'register' and 'copy' modules. https://ansible-galaxy-fortios-docs.readthedocs.io/en/latest/faq.html,
is there anyway i can download all config