title: add quotes around variable in ansible variables
body: <p>I've got problem with one of ansible playbooks (enrise.postgresql).</p>
  
  <p>It accepts variable postgresql_listen_addresses (list of values to listen_addresses in /etc/postgresql/9.3/main/postgresql.conf).</p>
  
  <p>I want to use value ansible_default_ipv4.address, but ansible provide it without quotes, and postgress wants it with single quotes (like '192.168.0.1').</p>
  
  <p>I have variable like this:</p>
  
  <pre><code>postgresql_listen_addresses: '{{ [ ansible_default_ipv4.address ] }}'
  </code></pre>
  
  <p>When address is without quotes, postgress complains about unquoted IP address (syntax error).</p>
  
  <p>How can I add quotes around value of ansible_default_ipv4.address? </p>
  
  <p>Thanks.</p>
  
  <p>UPD: </p>
  
  <p>I was able to solve it with this ugly code. If someone can better, please help.</p>
  
  <pre><code>print_quotes: "'%s'"
  postgresql_listen_addresses: [ "{{print_quotes|format(ansible_default_ipv4.address) }}"
  </code></pre>