lets say I have multiple db services running on multiple hosts. Each db on each host has slightly different options.
host1 -> db1, db2, db3
db1 -> namespace 1, namespace 2
db2 -> namespace 3, namespace 4
Now, I want to have something like
vars.db = db1 => “namespace1”, “namespace2”, db2 => “namespace 3”, “namespace4”
apply Service for (namespace => config in host.vars.db)
AND NOW THE MAGIC -> two for loops nested.
Any idea how to do that?