creating a list of dicts from a list

Hi,

I'm wondering if anyone might know how I would use the standard
ansible filters to create a new variable from an existing variable.

I would like to take a list of items

list1:
  - foo
  - bar
  - baz

and convert it into a list of dictionaries with a "name" key

list2:
  - name: foo
  - name: bar
  - name: baz

Any ideas?

Thanks,
-tim

Use set_fact?

Obviously, care to elaborate? Like with Jinja filters, loops, etc