title: Ansible combine 'setup' output with task output to JSON
body: <p>I currently gather facts about all my hosts using this command:</p>
  
  <pre><code> ansible all -m setup --tree out
  </code></pre>
  
  <p>This creates a file for each host in the directory <code>out</code> with all the ansible variables in JSON format. Very useful. </p>
  
  <p>However, my hosts consist of a lot of KVM hosts, so I want to add the output of <code>virt</code> / <code>list_vms</code> to each output.</p>
  
  <p>I created a small playbook:</p>
  
  <pre><code>hosts: myhost
  
  tasks:
    - name: VM list checker
      virt:
          name: list the VMs
          command: list_vms
  </code></pre>
  
  <p>I run this playbook like this:</p>
  
  <pre><code>ansible-playbook -v status.playbook.yml -s
  </code></pre>
  
  <p>I would like the output to be in <code>JSON</code> format, preferably combining the <code>facts</code> and the output of the <code>list_vms</code>.</p>
  
  <p>How can I create a similar layout (one <code>JSON</code> per host in the <code>out</code> directory?) with the combined information?</p>