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

ansible shortname task detection when specifying module path #3668

Closed
jsmartin opened this issue Jul 25, 2013 · 4 comments
Closed

ansible shortname task detection when specifying module path #3668

jsmartin opened this issue Jul 25, 2013 · 4 comments
Labels
bug This issue/PR relates to a bug.

Comments

@jsmartin
Copy link
Contributor

ansible-playbook -v -i ../../inventory/hosts -c paramiko -M ../../library/ setup.yml 
ERROR: ufw is not a legal parameter in an Ansible task or handler

but the library definitely exists:

ls -l ../../library/
total 32
-rw-r--r--@ 1 jmartin  staff  2734 Jul 24 09:50 bashobench
-rw-r--r--  1 jmartin  staff  4325 May 13 12:40 riakcs_creds
-rw-r--r--  1 jmartin  staff  2567 May 13 12:40 ufw

The only way around it for me is to make a symlink to library -> ../../library in the playbook dir.

@bcoca
Copy link
Member

bcoca commented Jul 25, 2013

Tested this also, -M does seem to work for ansible and ansible-doc, but
fails with ansible-playbook

Brian Coca
Stultorum infinitus est numerus
0110000101110010011001010110111000100111011101000010000001111001011011110111010100100000011100110110110101100001011100100111010000100001
Pedo mellon a minno

@mpdehaan
Copy link
Contributor

This is not an issue about -M but rather about how short name detection is used.

It's been a thing for a while actually, but yes, it should be fixed up.

@mpdehaan
Copy link
Contributor

workaround is:

action: modulename ..

mpdehaan pushed a commit that referenced this issue Aug 2, 2013
This should fix issue #3668

Also prevent an extra module path to be added multiple times.
@mpdehaan
Copy link
Contributor

mpdehaan commented Aug 3, 2013

Fixed per above, so closing.

@mpdehaan mpdehaan closed this as completed Aug 3, 2013
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 6, 2018
@ansible ansible locked and limited conversation to collaborators Apr 24, 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.
Projects
None yet
Development

No branches or pull requests

4 participants