# Failed to install rpm package with yum module

**URL:** <https://forum.ansible.com/t/failed-to-install-rpm-package-with-yum-module/18899>\
**Category:** Ansible Project\
**Created:** [July 30, 2015, 9:51am UTC](https://forum.ansible.com/t/failed-to-install-rpm-package-with-yum-module/18899 "2015-07-30T09:51:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_John](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@Tim\_John](https://forum.ansible.com/u/Tim_John)\
**Post date:** [July 30, 2015, 9:51am UTC](https://forum.ansible.com/t/failed-to-install-rpm-package-with-yum-module/18899/1 "2015-07-30T09:51:22Z")

</div>

Hey guys, I’ve encountered a weird problem with **yum** module.

Working environment:  
**OS** : CentOS 6.4  
**Kernel** : 2.6.32-358.e16.x86\_64  
**Ansible** : 2.0.0 (devel b37be236d9) running from source

I’d like to install **Erlang** in **CentOS 6.4** , to do that “ **erlang-solutions-1.0-1.noarch.rpm** ” must be installed first, which would add an extra repo entry (named **erlang\_solutions.repo** ), through that repo, we can install **Erlang**.

So, here is what I’m doing in my playbook:

```auto
- **name** : install erlang-solutions
**yum** : **name** =http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm **state** =present

```

this task will be executed without any error, and the “ **erlang-solutions-1.0-1.noarch.rpm** ” will be installed on the destination host.  
running ` **yum list installed | grep erlang** `, and the result is:

```auto
erlang-solutions.noarch 1.0-1 installed

```

BUT !!! There no extra repo entry added to ` **/etc/yum.repos.d** `, so, I still can’t install **Erlang**.

Forget to say, that after install “ **erlang-solutions-1.0-1.noarch.rpm** ” with rpm command directly on the host, like:

```auto
wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm

rpm -Uvh erlang-solutions-1.0-1.noarch.rpm

```

an extra yum repo entry named **erlang\_solutions.repo** will be added to ` **/etc/yum.repos.d** `.

Thank you, guys

Tim
