When using a loop your normal results are under a 'results' list, you
can still used matched, but now you have ONE per item in the mentioned
list:
debug:
msg: "{{ find_result.resuilts[0].matched }}"
^ will give you 'matched' for the first item
to get all matches:
debug: msg={{ find_result.results|map(attribute='matched')|list }}
^ will show matches per item in a list
change `list` for `sum` to get a total.
--
----------
Brian Coca
--
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/CACVha7co7BcKPFnmy%3Du_xjgeR0ST8ZkcVcfPPvP9JMtsiM_KRQ%40mail.gmail.com.