Ansible conditional with variables and wildcards

Try

when: "containers is match('^android-.*$')"

It is a Python regex. The dot '.' was missing in front of the star '*'. Also, you need to start '^' and end "$" the expression in case of matching.