ansible / ansible.netcommon / 6.1.0 / module / cli_restore Restore device configuration to network devices over network_cli | "added in version" 6.1.0 of ansible.netcommon" Authors: Sagar Paul (@KB-perByte)ansible.netcommon.cli_restore (6.1.0) — module
Install with ansible-galaxy collection install ansible.netcommon:==6.1.0
collections: - name: ansible.netcommon version: 6.1.0
This module provides platform agnostic way of restore text based configuration to network devices over network_cli connection plugin.
The module uses the platforms `config replace` commands to restore backup configuration that is already copied over to the appliance.
- name: Restore IOS-XE configuration ansible.netcommon.cli_restore: filename: backupDday.cfg path: flash://
path: description: - The location in the target appliance where the file containing the backup exists. The path and the filename together create the input to the config replace command, - For an IOSXE appliance the path pattern is flash://<filename> type: str filename: description: - Filename of the backup file, present in the appliance where the restore operation is to be performed. Check appliance for the configuration backup file name. type: str