Git Product home page Git Product logo

mikrotik-ansible's Introduction

mikrotik-ansible

Ansible roles for setup mikrotik devices

NOT TESTED WITH RouterOS v7


Some templates for manage mikrotik devices.

For first customize it for you, because there is some temporary logins, passwords, etc.

Recomendations

  • Create an unprivileged user on the system, for example, mikroansible adduser mikroansible
  • Become this user su - mikroansible
  • Generate ssh-keygen RSA key pair
  • Install pwgen apt-get install pwgen (required by some roles)
  • Configure SSH client settings file ~/.ssh/config

Host * 
ServerAliveInterval 4
ServerAliveCountMax 5
ConnectTimeout 10
NumberOfPasswordPrompts 0
StrictHostKeyChecking yes

  • Add routers under Anbsibe control - create an ansible account on the routers and set the public key. Several roles have been prepared for this.

roles/add-to-ansible - Simply creates a user on the router. You need to edit the variables of this role and specify which user and with which key to create.

roles/init - Update and create a user. If the ROS version is < 6.31, it will update to the latest version (via /system packages), update the firmware and add users.


In order to avoid incomprehensible situations with connecting to equipment, I recommend that you familiarize yourself with the ssh client options in detail

NumberOfPasswordPrompts and StrictHostKeyChecking


What this or that role does is clear from the name.

Some roles have their own README. Some has it in Russian language :)

mikrotik-ansible's People

Contributors

hellishgyp avatar

Stargazers

Sergey Voronkin avatar  avatar

Watchers

Sergey Voronkin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.