Open lingfish opened 6 years ago
So, I've discovered the issue; there's a name collision with your flatten
, and a Ansible core one of the same name.
I would submit a PR, but I'll just name it something that probably doesn't agree with you devs.
Oh, brilliant. Thanks for discovering that. Why not haproxy_flatten
to give it a namespace?
Sure, I'm totally indecisive on it to be honest, and a little shocked I didn't get any warnings from Ansible!
As I really need a solution I've created a pull request (#117) in case you want to go along the "simple renaming" route.
@benwebber ? Thoughts on the PR?
Looks like people are forking to fix.
So this is a weird one, I'm getting this:
With much head-scratching, I found this is happening at the end of the template, when dealing with the
tune
option. I've discovered this:Ok,
tune
is a dict of dicts, good. Lets feed this by hand:All good thus far. Now with some debugging in the template:
Very odd! Perhaps custom filters to jinja always return lists or something?!?
I'm running Ansible devel, and only just installed your role.