TASK: [vpc | debug var=utilities_elc.elasticache.data] ************************ok: [localhost] => { "var": { "utilities_elc.elasticache.data": { "AutoMinorVersionUpgrade": true, "CacheClusterCreateTime": 1430637402.709, "CacheClusterId": "utilities-elc", "CacheClusterStatus": "available", "CacheNodeType": "cache.m3.medium", "CacheNodes": [ { "CacheNodeCreateTime": 1430637402.709, "CacheNodeId": "0001", "CacheNodeStatus": "available", "Endpoint": { "Address": "utilities-elc.i4w6la.0001.apse2.cache.amazonaws.com", "Port": 11211 }, "ParameterGroupStatus": "in-sync", "SourceCacheNodeId": null } ],
TASK: [vpc | debug msg="Endpoint {{ utilities_elc_data.cachenodes[0].endpoint.address }}"] ***fatal: [localhost] => One or more undefined variables: 'dict object' has no attribute 'cachenodes'
- debug: var=utilities_elc.elasticache.data register: utilities_elc_data
- debug: msg="Endpoint {{ utilities_elc_data.cachenodes[0].endpoint.address }}" with_dict: utilities_elc_data