New in version 2.3.
This argument will cause the module to create a backup of the current
Specifies the backup filename. If omitted filename will be formated like [email protected]:MM:SS
Specifies where to store backup files. Required if backup=yes.
(added in 2.4)
Path to configuration file. Required when file_mode is True.
(added in 2.4)
Don't connect to any device, only use config_file as input and Output.
Only for partial backup, you can restrict by giving expected configuration path (ex. firewall address).
Specifies the DNS hostname or IP address for connecting to the remote fortios device. Required when file_mode is False.
Specifies the password used to authenticate to the remote device. Required when file_mode is True.
The src argument provides a path to the configuration file to load into the remote device.
Timeout in seconds for connecting to the remote device.
Configures the username used to authenticate to the remote device. Required when file_mode is True.
Specifies on which vdom to apply configuration
- 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
Common return values are documented here Return Values, the following are the fields unique to this module:
|running_config||full config string||always||string|
|change_string||The commands really executed by the module||only if config changed||string|
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.