title: How can I use default with variable in Ansible?
body: <p>I know that I can use a simple hardcoded string in default but I am trying to do this:</p>
  
  <pre><code>myvar: "{{ lookup('env','var1') | default("{{var2}}",true) }}"
  </code></pre>
  
  <p>But it adds that as a string instead of evaluating it.</p>