Skip to content
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

Create action plugin and use connection information from inventory #19

Open
CFSworks opened this issue Jun 27, 2017 · 1 comment
Open

Comments

@CFSworks
Copy link
Contributor

This may supersede #7 (I'm not extremely familiar with Ansible plugins yet).

The integration test playbook mentions an action plugin which is a necessary prerequisite for using the inventory connection details as the MikroTik API connection details.

What is necessary for this plugin?

@senorsmile
Copy link
Collaborator

So, my thoughts on this are:

Nearly all ansible modules that work by connecting to an API (especially an HTTP API) do not do so through a new connection type (or any other plugin). They do so by defining variables which are consumed by the module itself. This also has the requirement that the node that you're connecting to is technically localhost.

I'm not entirely against create a plugin to manage the connection, but we should do a more thorough survey of current and future Ansible network modules to determine what is recommended.

In the meantime, there are definitely some lower hanging fruit we could do to get things much more performant (like #7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants