- Published on
Ansible network backup
- Authors
- Name
- Jimmy Lai
Introduction
Git addresses this issue
using submodules. Submodules allow you to keep a Git repository as a subdirectory
of another Git repository. This lets you clone another repository into your project and keep your commits
separate.
git submodule add git@github.com:ciscops/ansible-network-backup.git network-backup
- hosts: network
gather_facts: no
connection: network_cli
tasks:
- include_role:
name: network-backup
vars:
network_backup_repository: 'git@github.com:repo/backups.git'