get the list of packages to update.

18 views
Skip to first unread message

Josu Vilda

unread,
Sep 7, 2017, 8:45:18 AM9/7/17
to Ansible Project
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.

Kai Stian Olstad

unread,
Sep 7, 2017, 2:03:03 PM9/7/17
to ansible...@googlegroups.com
On 07. sep. 2017 14:45, Josu Vilda wrote:
> I have seen that the yum module has the option to install the lastest, but
> not to check the packages
>

Use the yum module and run Ansible in check mode
https://docs.ansible.com/ansible/latest/playbooks_checkmode.html


--
Kai Stian Olstad
Reply all
Reply to author
Forward
0 new messages