---
- name: Save FortiGate Configuration
hosts: your_fortigate_host
gather_facts: no
tasks:
- name: Run show full-configuration command
fortinet.fortios.fortios_command:
username: your_username
password: your_password
host: "{{ inventory_hostname }}"
https: yes
command: "show full-configuration"
register: config_output
- name: Save configuration to a file
copy:
content: "{{ config_output.stdout[0] }}"
dest: /path/to/save/configuration.txt
On Sunday, May 7, 2023 at 4:24:09 AM UTC-7 Bahagia BAG wrote:
> Hello
>
> I want to save fortigate configuration using the command show
> full-configuration.
> I already installed fortinet.fortios:2.2.3
> What module do I have to load in ansible playbook?
>
> Best regards
>
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/94a354a5-5411-479c-8748-8c7c0c19036dn%40googlegroups.com.