https://github.com/ryanmerolle/ansible-net-backups
Ansible playbook for handling network device backups using cli_config module
https://github.com/ryanmerolle/ansible-net-backups
ansible-playbook netops
Last synced: 11 months ago
JSON representation
Ansible playbook for handling network device backups using cli_config module
- Host: GitHub
- URL: https://github.com/ryanmerolle/ansible-net-backups
- Owner: ryanmerolle
- License: gpl-3.0
- Created: 2020-05-31T16:50:37.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-20T15:29:52.000Z (about 6 years ago)
- Last Synced: 2025-07-23T00:24:33.221Z (11 months ago)
- Topics: ansible-playbook, netops
- Homepage:
- Size: 22.5 KB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-net-backups
## Intro
Example playbook for backing up a wide variety of network device types. This repo should be helpful for those just getting started with Ansible for Network Devices or those who would like to simplify their previously complex network device backup playbooks that required a different task for each target platform.
In the past, it has been required for users to setup their playbooks with a task per target OS type. Recently, though not well communicated, Ansible introduced the cli_command and cli_config modules to abstract the common functions for the various network operating systems within one common module.
CLICONF plugin abstracts all the various `_config` modules for over [2 dozen network OSes](https://docs.ansible.com/ansible/latest/plugins/cliconf.html). This plugin is built into the Ansible core fo 2.7. The backup option was introduced to the [cli_config](https://docs.ansible.com/ansible/modules/cli_config_module.html) module as of Ansible 2.8.
[Ansible Fest 2019: Deep dive with Network connection plugins](https://www.ansible.com/hubfs//AnsibleFest%20ATL%20Slide%20Decks/Deep%20dive%20with%20network%20connection%20plugins%20-%20AnsibleFest%202019.pdf).
## Requirements
This has been tested on and will be supported with the following:
* Ansible: 2.8.x
* Python: 3.6.x - 3.8.x
This is not to say that the playbook will not work as is with older versions of Python (even Python2) or older versions of Ansible (2.7.x+).
## Contributing
Feel free to fork and submit a pull request for any improvements.
## Platform Support
This playbook should support all platforms listed on the [cliconf plugins doc](https://docs.ansible.com/ansible/latest/plugins/cliconf.html). I cannot test the following platforms currently, but given there is no related config module listed, I suspected the cli_config module may not full be tested/supported with said platform:
* edgeswitch
* eric_eccli
* frr
* netvisor
* routeros