zahodi / ansible-mikrotik

Mikrotik module collection for ansible
Apache License 2.0
96 stars 33 forks source link

Deduplicate connection/login code by moving it to mt_common #7

Open CFSworks opened 7 years ago

CFSworks commented 7 years ago

Currently, every (non-idempotent) Ansible module duplicates the construction of the Mikrotik logic and initial call to mk.login - this should probably be moved to mt_common

This has other benefits as well, such as reusing an API connection for multiple tasks in the same run.