Search Dictionary Values in Ansible
问题 Having a dictionary like this: ossec_datacenter: atlanta: hostname: 'server1.fakedomain.net' ip: '192.168.12.170' port: '1515' miami: hostname: 'server2.fakedomain.net' ip: '192.168.20.31' port: '1514' dallas: hostname: 'server2.fakedomain.net' ip: '192.168.20.20' port: '1515' How would I search for all values in this dictionary in my when clause? I can access variables using ossec_datacenter[ossec_dc]['hostname'] But I want so search all values to make sure no matches are present. In other