title: How can Ansible "register" in a variable the result of including a playbook?
body: <p>How can an <a href="http://www.ansible.com/" rel="noreferrer">Ansible</a> playbook <a href="http://docs.ansible.com/ansible/playbooks_conditionals.html#register-variables" rel="noreferrer"><code>register</code></a> in a variable the result of <a href="http://docs.ansible.com/ansible/playbooks_roles.html#task-include-files-and-encouraging-reuse" rel="noreferrer">including</a> another playbook?</p>
  
  <p>For example, would the following register the result of executing <code>tasks/foo.yml</code> in <code>result_of_foo</code>?</p>
  
  <pre><code>tasks:
    - include: tasks/foo.yml
    - register: result_of_foo
  </code></pre>
  
  <p>How else can Ansible record the result of a task sequence?</p>