Ansible Network restore Collection is to provide a platform-agnostic way of managing network backup restore on supported network devices.
Full restore
:
- This enables the user to fetch running configuration from the device and save the restore to local or remote data-store
- Users can also push restore files onto GitHub with tags.
Differential restore
:
- This enables users to restore configuration only when there has been some change since the last time we did a restore.
- Users can use this operation to get differential restore and save the backed-up files to either the local data store or to the GitHub repository
- Users can also push restore files onto GitHub with tags.
run.yml
---
- hosts: rtr1
gather_facts: true
tasks:
- name: Network Restore
ansible.builtin.include_role:
name: network.restore.run
vars:
operation: restore
data_store:
local: "./network_local_restore/network"
run.yml
---
- hosts: rtr1
gather_facts: true
tasks:
- name: Network Restore
ansible.builtin.include_role:
name: network.restore.run
vars:
operation: restore
data_store:
scm:
origin:
url: "{{ GIT_REPO }}"
token: "{{ GH_ACCESS_TOKEN }}"
tag: "{{ tag }}"
user:
name: "{{ username }}"
email: "{{ email }}"
run.yml
---
- hosts: rtr1
gather_facts: true
tasks:
- name: Network restore and Resource Manager
ansible.builtin.include_role:
name: network.restore.run
vars:
operation: restore
diff: true
data_store:
local: "./network_local_restore/network"
run.yml
---
- hosts: rtr1
gather_facts: true
tasks:
- name: Network restore and Resource Manager
ansible.builtin.include_role:
name: network.restore.run
vars:
operation: restore
diff: true
data_store:
scm:
origin:
url: "{{ GIT_REPO }}"
token: "{{ GH_ACCESS_TOKEN }}"
tag: "{{ }}"
- Ansible Using roles for more details.
Provide a single platform agnostics entry point to manage network restore and restore use cases.
This collection follows the Ansible project's Code of Conduct. Please read and familiarize yourself with this document.
- Developing network resource modules
- Ansible network resources
- Ansible Collection Overview
- Ansible Roles overview
- Ansible User guide
- Ansible Developer guide
- Ansible Community Code of Conduct
GNU General Public License v3.0 or later.
See LICENSE to see the full text.