Ansible Filter select

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

Applies a regular expression to elements of a list and filters out those that don't match:

"{{ unzip_result.stdout_lines | select('match', '^.*module-info.java') | map('regex_replace', '.* +(.*)/module-info.java', '\\1') | list }}"