title: Ansible: return value from playbook
body: <p>Is there a way to return a value from one included playbook to use in another? Consider the following playbook:</p>
  
  <pre><code> ---
   - include: provisionPostgres.yml store=09123
   - include: provisionWebserver.yml store=09123
  </code></pre>
  
  <p>Each of these included playbooks provisions an AWS instance, and then installs software on that instance. Postgres and my web app respectively.</p>
  
  <p>The use case I'm trying to handle is to have the first included playbook return the IP address of my database server so that I can use it to point my web server to in the 2nd included playbook.</p>
  
  <p>I know that I can register values from tasks to use in other tasks, but I can't find out how to return a value from a playbook.</p>
  
  <p>How can I accomplish this in ansible? </p>