# Yum module available for testing

**URL:** <https://forum.ansible.com/t/yum-module-available-for-testing/11337>\
**Category:** Ansible Project\
**Created:** [March 12, 2012, 11:28pm UTC](https://forum.ansible.com/t/yum-module-available-for-testing/11337 "2012-03-12T23:28:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [March 12, 2012, 11:28pm UTC](https://forum.ansible.com/t/yum-module-available-for-testing/11337/1 "2012-03-12T23:28:29Z")

</div>

Seth implemented a very nice yum module for installing packages. (Thanks, Seth!)

Usage is listed on the examples page and the modules page, but in short:

# package should be the latest version in the yum repo

ansible webservers -m yum pkg=cobbler state=latest

# package should be a specific version

ansible webservers -m yum pkg=acme-2.0 state=installed

# package should not be installed

ansible webservers -m yum pkg=acme state=removed

# any version should be installed

ansible webservers -m yum pkg=acme state=installed

There are also various list commands as documented on the module page.

Try it out from the latest source code pull.

–Michael
