-
Couldn't load subscription status.
- Fork 167
Module utils ansiballz integration #357
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
Module utils ansiballz integration #357
Conversation
|
What problem are you trying to solve? Other than the I readily admit the If removing this hack and only supporting Ansible >= 2.3 actually provides some benefit, I'm supportive of the change. Otherwise, I'd recommend waiting to remove this hack until there's a real need/benefit. |
| del sys.path[0] | ||
| return juniper_junos_common | ||
| # Ansiballz packages module_utils into ansible.module_utils | ||
| from ansible.module_utils.basic import AnsibleModule |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain why this import is necessary? It doesn't appear to be used.
This reverts commit 2e8122c.
|
@stacywsmith , As you said Ansible < 2.3 are not officially supported by Ansible. We had asked in the ATT forum for any users currently running Ansible < 2.3, but we didn't get any reply. So we assumed that not many users use Ansible < 2.3. It was also recommended by Ansible group to drop support for If some user prefers Ansible < 2.3 , we will suggest them to use upto 2.0.2 version hosted on ansible-galaxy. Ansible was designed for a remote-tier architecture i.e playbooks can be executed on remote machines. Using |
From Ansible 2.1, Ansible uses Ansiballz framework for assembling modules,
But custom module_utils directory is supported from Ansible 2.3 .
Please find the reference for the issue here
Ansiballz packages modules_utils under ansible.module_utils, so juniper_junos_common can be imported by using -
from ansible.module_utils import juniper_junos_common