Closed quinot closed 9 years ago
Thanks for your report Philippe. There is indeed a bug in the plugin, which had an assumption that at least one term would be supplied. You could have written your playbook as:
Here the last entry is not a dict, so it gets assigned to template variable "term" before performing the search.
A fix has been pushed that fixes this bug.
Fix teste. All working. Thanks
As reported by Philippe Eveque ...@gmail.com: << But in my case it needs a "workaround" that consist in adding a fake list entry when using the with_ldap construct
when the line (see my playbook below) looking like: - EOList # This is a fake entry needed to make the tast work - no idea why is NOT commented, it works as expected.
But when I comment that same line (as it should not be needed) I got the following:
TASK: [lookup a user ntUserDomainId attribute in corporate ldap] ** fatal: [127.0.0.1] => Unexpected error while executing task: list index out of range
FATAL: all hosts have already failed -- aborting
Any ideas why ?
this is with ansible --version ansible 1.8.2
here is an extract of the playbook:
[...some stuff skipped]