In Ansible, I'm trying to find a oneliner to assert that all elements of a list match a regex using a python generator.
Something like:
- assert:
that:
- (item is match('{{ regex }}') for item in list)
But I can't figure out the right syntax.
Is it possible ? How ?