-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad Ansible integration #26
Comments
@innofocus what Ansible version are you running and how are you including the mikrotik modules in your environment? |
Hello
We generally manage to use the latest version of ansible. This time is on
2.4.2.0.
I've cloned the repo in a local one and use it in a roles/role name folder
imported via git submodule.
The module_utils is set to absolute path of roles/rolename/pythonlibs
Le 29 janv. 2018 18:37, "Valentin" <notifications@github.com> a écrit :
… @innofocus <https://github.com/innofocus> what Ansible version are you
running and how are you including the mikrotik modules in your environment?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVzXY6du_6xftRt0vNCVT_vkz8zg578vks5tPgHBgaJpZM4RwuF4>
.
|
@innofocus. I just tested in my environment on 2.3.3.0, 2.4.0.0, and 2.4.2.0 with no issues. See if that works for you. |
I'm also struggling to get this module working and any assistance would be appreciated. I'm fairly new to ansible (only been looking at it for a couple of days now) so am probably missing something incredibly obvious to a more seasoned user. Running ansible 2.4.2 on centos 7.4 with python 2.7.5 this module cloned into /usr/share/my_modules/ansible-mikrotik PYTHONPATH previously unset. Now set to /usr/share/my_modules/ansible-mikrotik/pythonlibs
creating a separate role that currently only has one task that i basically copied from the tests
running ansible-playback gives 'could not find imported module support code' error:
I'm targeting an actual mikrotik device, not the vagrant simulation. Using a mAP 2nD (https://mikrotik.com/product/RBmAP2nD) |
Hi @fairytaletrash, it looks like you are not actually import the mikrotik module libraries properly. They should be in /library or in your roles/role/library |
While embedded Tests were working well, once trying to use the module in a real env, ansible isn't able to find the module, even with module _utils settled:
Exception type: class ansible.errors.AnsibleParserError
Hint : the module_utils setting is a bad idea since it may break other modules environment.
The text was updated successfully, but these errors were encountered: