-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Error message from lookup plugin #5059
Comments
The error you have is from:
Where it's saying something that is trying to open is a directory. The description isn't accurate so I'll update it. |
The original defect was saying variables aren't resolved inside lookup plugins. This isn't universally the case, they are resolved. It may be that "inventory_dir" is not resolved at this point, however. To be determined and in queue for being reproduced. Thanks! |
|
Ah, this is because of the indirect variable above. Gotcha. |
names are evaluated early, so if you varaible comes from inventory or facts |
hi!
doesn't work as expected:
tried on 1.4 and 1.5 |
hi! |
still not fixed in git head. |
@dominus-directus please open a new bug for that. |
@oxyc bug confirmed. It looks like ansible_hostname is not in the inject that is sent to the plugin, and it doesn't fill in the hostname correctly:
|
The traceback occurs because the debug task has no name and defaults to something like ...
This string is sent through to self.callbacks.on_task_start in playbook/init.py and subsequently causes the failure in password.py. A workaround is to name the task:
|
Preliminary patch:
|
solved my issue too |
playbook:
role task:
Output:
The text was updated successfully, but these errors were encountered: