If you can share an example that doesn’t require running slapd (how about echo or something?), please file an example ticket in github that reproduces it.
I’m not sure how “latest” you were here but happy to look.
I was testing against ansible 8faaae142ce84ae8029520c4d0a4cc343bbc9070, I think I’ve managed to create a test case for this. I’ll test abit more then log a ticket, but it looks like it has to do with roles…
This was a result of the work last night to add deprecation warnings, and a variable wasn’t being copied properly while parsing the included tasks, which resulted in conditionals occasionally being applied to tasks they were not intended for.
While cleaning this up, I also took the opportunity to improve the error message on failed conditionals to not present all the internal “if True / False” logic – which the user doesn’t need to know about – when explaining which conditionals failed. That seems to be a popular question so should greatly simplify things.