# Getting more information back from Ansible (Specifically Yum)

**URL:** <https://forum.ansible.com/t/getting-more-information-back-from-ansible-specifically-yum/21503>\
**Category:** Ansible Project\
**Created:** [May 20, 2016, 9:24am UTC](https://forum.ansible.com/t/getting-more-information-back-from-ansible-specifically-yum/21503 "2016-05-20T09:24:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_McCormick](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@Mike\_McCormick](https://forum.ansible.com/u/Mike_McCormick)\
**Post date:** [May 20, 2016, 9:24am UTC](https://forum.ansible.com/t/getting-more-information-back-from-ansible-specifically-yum/21503/1 "2016-05-20T09:24:59Z")

</div>

Hey Guys,

I’m in the earlier stages of an Ansible deployment. I have one question perhaps someone can help with.

I’m currently firing off an email internally for playbooks as per the [mail modules examples](http://docs.ansible.com/ansible/mail_module.html#examples).

What I’d _really_ like to do is have ansible return the changes it made during a task, specifically when I update all packages on a host. Even if it can’t be emailed, on screen would be good but I can’t come across a way to achieve this, any suggestions would be greatly appreciated.

Kind Regards  
Mike

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [May 20, 2016, 5:07pm UTC](https://forum.ansible.com/t/getting-more-information-back-from-ansible-specifically-yum/21503/2 "2016-05-20T17:07:50Z")

</div>

we can add ‘diff’ support to the yum module, I believe we just did to the apt module.

---

<div class="post-metadata">

**Author:** ![Mike\_McCormick](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@Mike\_McCormick](https://forum.ansible.com/u/Mike_McCormick)\
**Post date:** [May 23, 2016, 2:53pm UTC](https://forum.ansible.com/t/getting-more-information-back-from-ansible-specifically-yum/21503/3 "2016-05-23T14:53:52Z")

</div>

This would be fantastic.

I’ve achieved a not perfect, but half decent workaround so far by grabbing the days changes in yum.log for now:

_- name: Fetching changes made today from yum.log_  
_become: yes_  
_shell: date | grep “`awk {'print $2, $3'}`” /var/log/yum.log_  
_register: yum\_log_

_- debug: msg=“{{ yum\_log.stdout\_lines }}”_
