title: Prettify JSON file in ansible
body: <p>Say I have a JSON file from a template</p>
  
  <pre><code>- name: consul config file
    template: &gt;
      src={{ consul_config_template }}
      dest={{ consul_config_file }}
      owner={{ consul_user }}
      group={{ consul_group }}
      mode=0755
  </code></pre>
  
  <p>How can I prettify the JSON file in order to remove extra spaces and newlines? Is there any ansible module I can call after <code>template</code>?</p>