Résolved :
   link: "{{ rollbackspu.stdout_lines | select('match','Log file 
location:') | list }}"

thank you Walter 

Le vendredi 16 décembre 2022 à 14:22:10 UTC+1, [email protected] a écrit :

>
> On this page 
> https://www.tailored.cloud/devops/how-to-filter-and-map-lists-in-ansible/
>
> use "*select*" filter to filter a list and "*match*" to combine it with 
> reg expressions, like:
>
> "{{ ansible_interfaces | *select('match', '^(eth|wlan)[0-9]+')* | list }}"
>
>
>
> In your case maybe this will work:
>
> - debug:
>     msg: "{{ rollbacks.stdout_lines | select('match', 
> '/opt/bea/cfgtoollogs/opatch') | list }}"
>
> Walter
>
>

-- 
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/3ec6d6fd-3b69-4b1b-8858-e01cf3ff82a3n%40googlegroups.com.

Reply via email to