# get the list of packages to update.

**URL:** <https://forum.ansible.com/t/get-the-list-of-packages-to-update/25428>\
**Category:** Ansible Project\
**Created:** [September 7, 2017, 12:45pm UTC](https://forum.ansible.com/t/get-the-list-of-packages-to-update/25428 "2017-09-07T12:45:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrvilda](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jrvilda](https://forum.ansible.com/u/jrvilda)\
**Post date:** [September 7, 2017, 12:45pm UTC](https://forum.ansible.com/t/get-the-list-of-packages-to-update/25428/1 "2017-09-07T12:45:18Z")

</div>

Hi all,  
I would like to automate a task to check the list of packages that need to be updated in my server farm with ansible.

Is there any way to do it?

I have seen that the yum module has the option to install the lastest, but not to check the packages  
and I have tried it from shell,  
shell  
but it is blocked if it finds a Red Hat with local repository without license (should give error and continue , do not?)

thx.

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [September 7, 2017, 6:02pm UTC](https://forum.ansible.com/t/get-the-list-of-packages-to-update/25428/2 "2017-09-07T18:02:28Z")

</div>

Use the yum module and run Ansible in check mode  
[https://docs.ansible.com/ansible/latest/playbooks\_checkmode.html](https://docs.ansible.com/ansible/latest/playbooks_checkmode.html)
