Hi,
first I would like to say I am new to Ansible, so some of my questions might not be the wisest...
As a part of my bachelor's project, I am supposed to create Ansible module that would be used to configure Mikrotik devices. I decided to go with Mikrotik's API instead of SSH, as I thought it would give me more possibilities. Now I have find out that I have no idea how to connect Ansible to Mikrotik's API. Originally I thought I would just write python code using MT's python API class and passed Ansible parameters into it, including IP, login etc.
So my question is: What would be the "proper" way of doing this? Should I either create some connection plugin to MT's API or find a way (if possible) to make the module do the hard work, including connection? Could someone please point me to the right direction?
Thank you for any advice.