Collection for idempotent management of MikroTik RouterOS devices, including upsert of configs.
To install this collection use the ansible-galaxy
command-line tool:
ansible-galaxy collection install andreygubarev.routeros
Role for idempotently finding and upserting Mikrotik RouterOS configurations using the RouterOS API.
---
- hosts: routeros
tasks:
- name: Upsert IP pool
ansible.builtin.include_role: { name: andreygubarev.routeros.api_find_and_upsert }
vars:
path: ip pool
find:
name: dhcp
values:
name: dhcp
ranges: 10.10.0.2-10.10.0.254
For full documentation and usage instructions, please refer to the role documentation.
- Ansible Galaxy - Find more information and download the collection.
- Source Code - Access the collection's source code on Github.