title: Ansible Playbook that will run a query on a postgres SQL db instance
body: <p>I am new to using Ansible and am looking to understand how to write an Ansible Playbook that will run a query on a postgres SQL db instance as a particular user and display the output in the terminal.</p>
  
  <p>For example:</p>
  
  <pre><code>SELECT * FROM example_db;
  </code></pre>
  
  <p>Could someone provide a simple example?</p>