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

local library not being accounted for in ANSIBLE_LIBRARY #12891

Closed
Jmainguy opened this issue Oct 23, 2015 · 2 comments
Closed

local library not being accounted for in ANSIBLE_LIBRARY #12891

Jmainguy opened this issue Oct 23, 2015 · 2 comments
Assignees
Labels
bug This issue/PR relates to a bug. P2 Priority 2 - Issue Blocks Release
Milestone

Comments

@Jmainguy
Copy link
Contributor

Ansible 2.0 latest from source today.

its not reading custom modules from a local library dir by default, like its intended to do.

[jmainguy@Jmainguy-Fedora ansible]$ ls
hosts  library
[jmainguy@Jmainguy-Fedora ansible]$ ls library/
puppet2.py
[jmainguy@Jmainguy-Fedora ansible]$ ansible -i hosts all -m puppet2 -a "show_diff=true filter_password=true"
cee-engine01.web.qa.ext.example.com | FAILED! => {
    "failed": true, 
    "msg": "ERROR! The module puppet2 was not found in configured module paths. Additionally, core modules are missing. If this is a checkout, run 'git submodule update --init --recursive' to correct this problem."
}
[jmainguy@Jmainguy-Fedora ansible]$ rpm -qa ansible
ansible-2.0.0-0.git201510231613.99c6f77.devel.fc22.noarch
[jmainguy@Jmainguy-Fedora ansible]$ ansible -i hosts all -m puppet2 -a "show_diff=true filter_password=true" --module-path library/
cee-engine01.web.qa.ext.example.com | SUCCESS => {
    "changed": true, 
    "rc": 0, 
    "stderr": "", 
    "stdout": "Notice: Enabling EPEL in profiles::collectd\nNotice: /Stage[main]/Profiles::Collectd/Notify[profiles: enabling EPEL]/message: defined 'message' as 'Enabling EPEL in profiles::collectd'\nNotice: Finished catalog run in 28.94 seconds\n", 
    "stdout_lines": [
        "Notice: Enabling EPEL in profiles::collectd", 
        "Notice: /Stage[main]/Profiles::Collectd/Notify[profiles: enabling EPEL]/message: defined 'message' as 'Enabling EPEL in profiles::collectd'", 
        "Notice: Finished catalog run in 28.94 seconds"
    ]
}
@sivel
Copy link
Member

sivel commented Oct 23, 2015

Isn't a local library directory only traversed if it is local to a playbook? Pretty sure it is, in which case since you are using the ansible command it wouldn't be used. I see you mention ANSIBLE_LIBRARY, but don't see any output of evidence of that.

@jimi-c jimi-c added bug_report P2 Priority 2 - Issue Blocks Release labels Oct 23, 2015
@jimi-c jimi-c self-assigned this Oct 23, 2015
@jimi-c jimi-c added this to the v2 milestone Oct 23, 2015
@jimi-c jimi-c closed this as completed in 3eea4e2 Oct 23, 2015
@jimi-c
Copy link
Member

jimi-c commented Oct 23, 2015

Closing This Ticket

Hi!

We believe the above commit should resolve this problem for you. This will also be included in the next major release.

If you continue seeing any problems related to this issue, or if you have any further questions, please let us know by stopping by one of the two mailing lists, as appropriate:

Because this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular issue is resolved.

Thank you!

photoninger pushed a commit to photoninger/ansible that referenced this issue Oct 26, 2015
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 7, 2018
@ansible ansible locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug. P2 Priority 2 - Issue Blocks Release
Projects
None yet
Development

No branches or pull requests

4 participants