Skip to content

yurnov/ansible-mikrotik-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Mikrotik Backup

Ansible Mikrotik Backup is a simple Ansible playbook to create backups from your RouterOS device.

Prerequisites and Installation

Use the package manager pip to install Ansible

pip install ansible==2.9.27

or follow installation guide for your platform to obtain ansible.

Tested with Ansible versions 2.8.x and 2.9.x but should work with other versions as well.

Simply clone this repo for usage

git clone git@github.com:yurnov/ansible-mikrotik-backup.git

You need to have passwordless authentication to your routeros devices or locally installed sshpass for password authentication.

Usage

Copy inventory.example into inventory and than edit inventory to have your actual data. Multiple RouterOS device is supported, please add a separate line for each of them.

Passwords should be placed into inventory file in case if you use password authentication.

Run playbook with

ansible-playbook main.yml -i inventory

Gererated config files will be stored in output folder

Limitations

Administrator account and passwords is not included to backup file due to security reason. Please take care of this part of config separately.

TODO

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

Ansible playbook for Mikrotik backup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published