title: Running a SELECT Query with an Ansible Task
body: <p>In <a href="http://docs.ansible.com/list_of_database_modules.html" rel="noreferrer">this</a> list of mysql db modules for Ansbile, there's one for creating a db, or creating a user, etc.</p>
  
  <p>I would like to run a query against a pre-existing table and use the results of that query to populate an Ansible variable (list of IP addresses, and node type) upon which I would run different tasks, depending on node type.</p>
  
  <p>How can that be done in Ansible?</p>