Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 1.58 KB

README.md

File metadata and controls

47 lines (29 loc) · 1.58 KB

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 [email protected]: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