title: Ansible output formatting options
body: <p>Is there an option to format ansible output with the use of ansible (not any other scripts)? For instance</p>
  
  <pre><code>name: Show version
    sudo: true
    hosts: web_front_end
    tasks:
      - name: Create yum cache
        shell: yum makecache
      - name: Check the version of Portal
        shell: rpm -qa | grep portal
        register: portal
      - debug: msg={{portal.stdout}}
    tags:
      - portal
      - wfe
  </code></pre>
  
  <p>I would like to get only the</p>
  
  <pre><code>TASK: [debug msg={{portal.stdout}}]
  </code></pre>
  
  <p>part. Or even is there a way to get only the shell command output?</p>