# Gems Being Installed but the Symlink for the Executable is Not Created

**URL:** <https://forum.ansible.com/t/gems-being-installed-but-the-symlink-for-the-executable-is-not-created/15201>\
**Category:** Ansible Project\
**Created:** [May 9, 2014, 2:06am UTC](https://forum.ansible.com/t/gems-being-installed-but-the-symlink-for-the-executable-is-not-created/15201 "2014-05-09T02:06:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Navid\_Paya2](https://avatars.discourse-cdn.com/v4/letter/n/dbc845/32.png) [@Navid\_Paya2](https://forum.ansible.com/u/Navid_Paya2)\
**Post date:** [May 9, 2014, 2:06am UTC](https://forum.ansible.com/t/gems-being-installed-but-the-symlink-for-the-executable-is-not-created/15201/1 "2014-05-09T02:06:54Z")

</div>

Hi guys  
I’m using ansible to deploy the [scoutapp.com](http://scoutapp.com) agent which is basically a ruby gem. I have used both the gem and shell modules to install the module, the problem is after the module is installed, the executable isn’t symlinked to a location like /usr/bin or /usr/local/bin which is what would happen if I run the exact same command in a shell. I know ansible runs this stuff using a Python script so I was wondering if you know anyway I can fix this?

This is my instructions:

- name: Install the scout gem  
shell: gem install scout -no-rdoc -no-ri

And this is the one I tried with the gem module:

- name: Install the scout gem  
gem: name=scout state=present

---

<div class="post-metadata">

**Author:** ![Dick\_Davies](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Post date:** [May 9, 2014, 3:43pm UTC](https://forum.ansible.com/t/gems-being-installed-but-the-symlink-for-the-executable-is-not-created/15201/2 "2014-05-09T15:43:36Z")

</div>

Look at the 'user\_install' option on the gem task.

Cheers  
Dick.

---

<div class="post-metadata">

**Author:** ![Navid\_Paya2](https://avatars.discourse-cdn.com/v4/letter/n/dbc845/32.png) [@Navid\_Paya2](https://forum.ansible.com/u/Navid_Paya2)\
**Post date:** [May 10, 2014, 2:04pm UTC](https://forum.ansible.com/t/gems-being-installed-but-the-symlink-for-the-executable-is-not-created/15201/3 "2014-05-10T14:04:14Z")

</div>

Thanks, Dick. That did the job. Actually I saw this option but thought it would work the other way around (as in if set to yes, it would create the executable). It’s working like a charm now.
