ANSIBLE.YUM(3)

NAME
yum - Manages packages with the I(yum) package manager

DESCRIPTION

Will install, upgrade, remove, and list packages with the yum package manager.

OPTIONS

conf_file
    The remote yum configuration file to use for the transaction.(Added in Ansible version 0.6.)

disable_gpg_check
    Whether to disable the GPG checking of signatures of packages being installed. Has an effect only if state is present or latest. Choices: yes,no. (default: no)(Added in Ansible version 1.2.)

disablerepo
    repoid of repositories to disable for the install/update operation These repos will not persist beyond the transaction Multiple repos separated with a ','(Added in Ansible version 0.9.)

enablerepo
    Repoid of repositories to enable for the install/update operation. These repos will not persist beyond the transaction multiple repos separated with a ','(Added in Ansible version 0.9.)

list
    Various non-idempotent commands for usage with /usr/bin/ansible and not playbooks. See examples.

name
    Package name, or package specifier with version, like name-1.0. When using state=latest, this can be '*' which means run: yum -y update. You can also pass a url or a local path to a rpm file.(required)

state
    Whether to install (present, latest), or remove (absent) a package. Choices: present,latest,absent. (default: present).

EXAMPLES
- yum: name=httpd state=latest
- yum: name=httpd state=removed
- yum: name=httpd enablerepo=testing state=installed
- yum: name=* state=latest
- yum: name=http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm state=present
- yum: name=/usr/local/src/nginx-release-centos-6-0.el6.ngx.noarch.rpm state=present
- yum: name="@Development tools" state=present

AUTHOR
Seth Vidal

SEE ALSO
ansible(1), http://ansible.github.com/modules.html#yum