/backup_manager

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Backup Manager

Overview

Backup Manager is an Ansible Role for network engineers and network operators. It provides functions to backup and restore configurations to/from git repository.

Quick start

Download from ansible galaxy

  1. Download the role from ansible_galaxy into your roles directory
ansible-galaxy install -p roles nmake.backup_manager
  1. Call the role by loading it at the top of your playbook
- name: "Backup Configurations"
  hosts: all
  gather_facts: False
  roles:
  - role: nmake.backup_manager
    function: backup
    backup_manager_git_deploy_key: "<vaulted deploy-key>"
    backup_manager_git_deploy_key_file: "~/.ssh/my_deploy_key"
  1. Run your playbook

NOTE: You will need a more recent version of git (> 2.10.0) for the git push to work on Ansible Tower.