This repository includes the following Ansible modules:
routeros_facts
: Returnansible_facts
for the devicerouteros_copy
: Copy files from the local machine to the devicerouteros_fetch
: Copy files from the device to the local machinerouteros_command
: Run a RouterOS command against the API directlyrouteros_item
: Create/update/delete configuration items in the API hierarchy
- Latest Ansible
- Latest librouteros
- Mikrotik RouterOS-based device (e.g. RouterBOARD or Mikrotik CHR)
- API server enabled (check for port 8728 open)
I previously started by trying to update zahodi and senorsmile's ansible-mikrotik repository.
While trying to reorganize it, I decided it was ultimately better to start with a collection of modules based more fundamentally on RouterOS's print/set/add command set, and focus on flexibility rather than having a module for each feature.
Code here is released under GPLv3 for maximum compatibility with Ansible Core.