fortios_config – Manage config on Fortinet FortiOS firewall devices¶
Synopsis¶
This module provides management of FortiOS Devices configuration.
Requirements¶
The below requirements are needed on the host that executes this module.
pyFG
Parameters¶
Examples¶
- name: Backup current config
fortios_config:
host: 192.168.0.254
username: admin
password: password
backup: yes
- name: Backup only address objects
fortios_config:
host: 192.168.0.254
username: admin
password: password
backup: yes
backup_path: /tmp/forti_backup/
filter: "firewall address"
- name: Update configuration from file
fortios_config:
host: 192.168.0.254
username: admin
password: password
src: new_configuration.conf.j2
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
change_string
string
|
only if config changed |
The commands really executed by the module
|
running_config
string
|
always |
full config string
|
Status¶
This module is not guaranteed to have a backwards compatible interface. [preview]
This module is maintained by the Ansible Community. [community]