A possible solution if I can’t expand the lists into one list is to define a different group of hosts specifically for the application. Though that seems messier
You have group theory filters like |union that can help with this.
Note that with_flattened was buggy in 1.8.1, should be fixed in 1.8.2.
I would also avoid the - in names whenever possible, it creates issues
with certain methods of access.
Thanks for that. I have tried to avoid the “in” approach though I have found that the information about where things needs to live needs to be accessed from multiple tiers / groups
I.e apache configuration on the web tier needs to know the hosts that the application is configured on.
I’ll have a rethink of my approach as I do agree that it should be avoided if possible.
Interesting about 1.8.2. I’ll keep an eye on that. I was pretty sure it was doing what I was expecting prior to 1.8.1.