I have a list of strings/names, and I want to reduce this list before processing it. Instead of a simple filter, I have a list of regular expressions, and I want to keep those items in my list, which match to one of the regular expressions.
Is this doable in regular ansible? I could not find a way to solve this.
So for example:
- foo
- bar
- foobar
- roflcopter
filtered with ["^foo$", ".*bar$"]
should yield:
- foo
- bar
- foobar