title: Is there a way to hide/stop some output generated by debug
body: <p>Looking for help to understand why I have the additional output from the debug line below:</p>
  <pre class="lang-yaml prettyprint-override"><code>- name: Check kernel diff
    become: true
    shell: &quot;sdiff {{ item }}/pre-kernel.out {{ item }}/post-kernel.out | grep '|' | awk -F'|' '{print $2}' | xargs&quot;
    register: &quot;kernel&quot;
    with_items: &quot;{{work_dir}}&quot;
  - debug: 
      msg: &quot;The system is now running Kernel Version {{ item.stdout }}&quot;
    when: &quot;{{ item.changed == true }}&quot;
    with_items: &quot;{{ kernel.results}}&quot;
  </code></pre>
  <p>The output from msg is correct, but how can I stop/hide all the detail that appears before it:</p>
  <pre class="lang-none prettyprint-override"><code>TASK [patching : debug] ************************
  [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.changed == true }}
  ok: [test02] =&gt; (item={'stderr_lines': [], 'ansible_loop_var': u'item', u'end': u'2020-05-26 16:23:37.068718', u'stderr': u'', u'stdout': u'4.14.35-1902.302.2.el7uek.x86_64', u'changed': True, 'failed': False, u'delta': u'0:00:00.008894', u'cmd': u&quot;sdiff /var/tmp/patching_2020-05-26/pre-kernel.out /var/tmp/patching_2020-05-26/post-kernel.out | grep '|' | awk -F'|' '{print $2}' | xargs&quot;, 'item': u'/var/tmp/patching_2020-05-26', u'rc': 0, u'invocation': {u'module_args': {u'warn': True, u'executable': None, u'_uses_shell': True, u'strip_empty_ends': True, u'_raw_params': u&quot;sdiff /var/tmp/patching_2020-05-26/pre-kernel.out /var/tmp/patching_2020-05-26/post-kernel.out | grep '|' | awk -F'|' '{print $2}' | xargs&quot;, u'removes': None, u'argv': None, u'creates': None, u'chdir': None, u'stdin_add_newline': True, u'stdin': None}}, 'stdout_lines': [u'4.14.35-1902.302.2.el7uek.x86_64'], u'start': u'2020-05-26 16:23:37.059824'}) =&gt; {
      &quot;msg&quot;: &quot;The system is now running Kernel Version 4.14.35-1902.302.2.el7uek.x86_64&quot;
  }
  </code></pre>
  <p>So it looks more like just:</p>
  <pre class="lang-none prettyprint-override"><code>TASK [patching : debug] ************************
  ok: [test02] =&gt; {
      &quot;msg&quot;: &quot;The system is now running Kernel Version 4.14.35-1902.302.2.el7uek.x86_64&quot;
  }
  </code></pre>
  <p><code>var_file.yml</code> for reference:</p>
  <pre class="lang-yaml prettyprint-override"><code>---
  work_dir:
    - /var/tmp/patching_{{ansible_date_time.date}}
  </code></pre>
  <p>I've been using <a href="https://stackoverflow.com/questions/29512443/register-variables-in-with-items-loop-in-ansible-playbook">this</a> as guidance.</p>