title: ansible string to variable (aka eval)
body: <p>I have a list of strings <code>strs = [ 'foo', 'bar' ]</code> and some dicts <code>foo = {'a': 1, 'b': 2}, bar = {'a': 3, 'b': 4}</code>.  I'd like to use with_items to index into the named dicts</p>
  
  <pre><code>- copy
    src: {{item}}.a
    dest: {{item}}.b
    with_items: strs
  </code></pre>
  
  <p>But I want {{item}}  to refer to the variables named foo and bar rather than the strings.  In lisp or python I'd use <code>eval</code> for this.  Is there something similar in ansible?</p>