Back up device configuration from network devices over network_cli
Version added: 4.2.0
- This module provides platform agnostic way of backing up text based configuration from network devices over network_cli connection plugin.
Note
- This module is supported on
ansible_network_os
network platforms. See the :ref:`Network Platform Options <platform_options>` for details.
- name: configurable backup path
ansible.netcommon.cli_backup:
filename: backup.cfg
dir_path: /home/user
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
backup_path
string
|
always |
The full path to the backup file
Sample:
/playbooks/ansible/backup/hostname_config.2016-07-16@22:28:34
|
- Katherine Case (@Qalthos)