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 ?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAGH8rEyOHqmrA7diB3AznLqRncRaj_r539gA5-oZpkEwMrzwCA%40mail.gmail.com.