I just started noticing it is failing when the spec.selector.name is not available or undefined, it doesn’t seem to go to the default. This doesn’t happen for me on 2.1, but wasn’t sure if something changed in devel or this is a bug.
The last commit you had above, didn’t even fully run the playbook, so there might be something else wrong with that one, this was the commit just for posterity:
`
56148291e99ebac0979e4866e26fefaf88fec024
`
Let me know if you need any more information. Thanks!
Slight caveat to that, I don’t use that template in a conditional, just in a normal shell task in order to pass in a variable to a shell script. It does work in the other commit versions that you provided, like I stated above though.