Thanks for the input, I will give that a go.

With kind regards,

Cornelis

Op vr 26 mrt. 2021 15:41 schreef Brian Coca <[email protected]>:

> 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 a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/ugXq5aiPeio/unsubscribe.
> To unsubscribe from this group and all its topics, 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
> .
>

-- 
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/CAOnWF6e2OmVAWi8un7bUj4QJppE2z-ai8-MC-62H-0erYdp4KQ%40mail.gmail.com.

Reply via email to