fortios_config – Manage config on Fortinet FortiOS firewall devices¶
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]
Authors¶
- Benjamin Jolivot (@bjolivot)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.