Looking for an ansible module which supports yum-utils package

15 views
Skip to first unread message

Veera

unread,
May 12, 2019, 5:30:50 PM5/12/19
to Ansible Project
Hi ,

I am looking for an ansible module which supports  yum-utils package commands.
It consists of  a command "package-cleanup"  which is  pretty useful in cleaning  the  old kernels.

package-cleanup --oldkernels --count=2   <= this  command will clean up all old kernels and keep just two(The current one and the previous one)

But on search  in the  Module  index of ansible, or under package management,there is  no module for this command "package-cleanup".

Do  anyone uses the ansible modules of commands from yum-utils?  Kindly  share the details ..


David Rojas

unread,
May 12, 2019, 5:44:19 PM5/12/19
to ansible...@googlegroups.com
Take a look at the autoremove parameter in the YUM module that may help  https://docs.ansible.com/ansible/latest/modules/yum_module.html or you may have to use the command module

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/543094cb-3a83-4596-9f5d-ecf516103d1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
David Rojas
California High School Cross Country and Track
Reply all
Reply to author
Forward
0 new messages