# Limit debug results

**URL:** <https://forum.ansible.com/t/limit-debug-results/27398>\
**Category:** Ansible Project\
**Created:** [April 27, 2018, 6:55pm UTC](https://forum.ansible.com/t/limit-debug-results/27398 "2018-04-27T18:55:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris7](https://avatars.discourse-cdn.com/v4/letter/c/439d5e/32.png) [@Chris7](https://forum.ansible.com/u/Chris7)\
**Post date:** [April 27, 2018, 6:55pm UTC](https://forum.ansible.com/t/limit-debug-results/27398/1 "2018-04-27T18:55:09Z")

</div>

Playbook to check for new updates in repo. I only want to return the package name instead of all the additional information.

**Playbook:**

- name: “Checking for updates”  
yum:  
list: updates  
enablerepo: ‘epel’  
register: updates\_result  
tags:

- list\_updates

- debug:  
msg: "{{ item.envra }} "  
loop: “{{ updates\_result.results }}”

**Output:**

ok: [server\_name] =\> (item=None) =\> {}

MSG:

0:ansible-2.5.1-1.el7.noarch

ok: [server\_name] =\> (item=None) =\> {}

MSG:

0:nagios-plugins-perl-2.2.1-9git5c7eb5b9.el7.x86\_64

ok: [server\_name] =\> (item=None) =\> {}

MSG:

0:nagios-plugins-2.2.1-9git5c7eb5b9.el7.x86\_64
