title: How can I use jinja2 to join with quotes in Ansible?
body: <p>I have an ansible list value:</p>
  
  <pre><code>hosts = ["site1", "site2", "site3"]
  </code></pre>
  
  <p>if I try this:</p>
  
  <pre><code>hosts | join(", ")
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>site1, site2, site3
  </code></pre>
  
  <p>But I want to get:</p>
  
  <pre><code>"site1", "site2", "site3"
  </code></pre>