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/C36B6E6A-CA8E-43A5-80BB-21E4DDE94B74%40nist.gov.

Reply via email to