

Registered in the UK as: Jaytag Computer Limited, No 6059116. When: (('System is already up to date') = -1) and name: Reboot the Router if the download is successful When: ('System is already up to date') = -1 name: Run package updates and reboot if needed I used a RB4011 router running RouterOS v6.47beta60 during testing. Raw: /system package update check-for-updates UPDATE: RouterOS v6.47 was released to the stable channel on June 2nd 2020 with DNS over HTTPS support.

# forces the connection to work one-by-one (note, this will stop the whole playbook if the host is unreachable) # You may use or modify this script as you wish as long as this copyright # Copyright Jaytag Computer Limited 2015 - #

# An Ansible Playbook to mass update the ROS version on MikroTik routers BE CAREFUL - it reboots the remote router when the task is complete. It checks if package updates are available, and if so, updates the MikroTik. The actual playbook we use is very simple. Once the connection is working OK, we can then add the relevant routers to /etc/ansible/hosts. You should see the MikroTik banner message and the > command prompt. Refer to: MikroTik Wiki for full instructions.įrom the source server, test the SSH connection works: ssh you do not immediately connect, you may need to add the appropriate identity file to ~/.ssh/config IdentityFile ~/.ssh/mikrotik_dsa We use Ansible internally to remotely configure machines, so it seemed a natural choice to update the firmware of the MikroTik routers we have installed.įirstly, you need to generate an appropriate DSA SSH key. You can use The Dude, but this has not been updated in some time, and MikroTik have not made their long term intentions clear in relation to the continued development of the software. Administering a large installed base of MikroTik routers can be difficult.
