AWX Oddities with MikroTik

AWX Oddities with MikroTik

Something I just came across recently is I’ve had to switch to using “Machine” credentials with MikroTik RouterOS v7 devices instead of “network” credential types. I’m not 100% sure why this is yet, but something that will maybe help someone facing the same issue. Honestly I don’t have any v6 routers left to check this against v6, but it could be something with the newer version of ansible.community.routeros collection. At the time of this writing the version is 2.7.0, and the last version I’ve used was 1.1.0, so there are likely changes in the module that have lead to this, but there’s no indication of this in the Ansible documentation. For referenct I’m also running AWX version 21.10.2.

This does not affect using ansible or ansible-playbook from the cli, as there’s no “credential types” there.

How this presented for me is getting errors about “access denied for: ‘none'”. Meaning no user was specified in the ssh connection string.

Instead of selecting “Network” when creating your credential object, select “Machine”

From here you can add your password or private key as you normally would.

My guess is this could also have to do with the kernel updates in routerOS v7 being now a more recent linux kernel. If I find out more on this, I’ll update this post. Hopefully this helps someone who’s scratching their head like I was.

Leave a Reply

Your email address will not be published. Required fields are marked *