I have a task output like this:
- name: Print Response of status resource
debug:
msg: " {{ result }}"
ok: [node-3] => {
"msg": " {'msg': u'All items completed', 'changed': False, 'results': [{'ansible_loop_var': u'item', 'failed': False, 'changed': False, u'content': {u'body': None, u'node': u'node-3', u'allServicesLocked': True, u'appServer': u'1', u'type': u'iMIME', u'data': True,]} "
}
But when i try to access like that in some task, it does not work:
until : result['results'].data == True , it complains saying dict does not have results attribute !
Here result is my registered variable. As per above response , it should work fine ?