Backup running-configuration to git repository.
💿 Cisco IOS Collection
💿 Cisco NXOS Collection
- backup_temp_dir
- backup_git_repo
- backup_git_version
- backup_git_accept_newhostkey
- backup_cron_weekday
- backup_cron_hour
- backup_cron_minute
None.
---
- name: Backup config from target to git.
gather_facts: false
hosts: "{{ target }}"
roles:
- role: jiholland.cisco.backup
vars:
backup_git_repo: git@gitlab.example.com:network-management/ansible-backup.git
📅 Use tag backup_schedule to schedule the backup using cron.
BSD
Jørn Ivar Holland=)