I am trying to iterate over a hash of hash of a list, but I do not seem to be having much luck, I have setup a group variable which I select using a variable, which appears to be working correctly as per the debug, but once in the template I don’t seem to be able to iterate over it no matter what permutations I use.
Any advice on this would be great.
Thanks
Dave
cat group_vars/all
boston:
nameservers: [‘10.0.0.1’,‘10.0.0.2’]
ntp: [‘pool1.ntp.org’,‘pool2.ntp.org’]
losangeles:
nameservers: [‘10.0.1.1’,‘10.0.1.2’]
ntp: [‘pool1.ntp.org’,‘pool2.ntp.org’]
cat main.yml