# Ansible 1.9.0.1 - alternatives module seems broken

**URL:** <https://forum.ansible.com/t/ansible-1-9-0-1-alternatives-module-seems-broken/17956>\
**Category:** Ansible Project\
**Created:** [April 10, 2015, 8:33pm UTC](https://forum.ansible.com/t/ansible-1-9-0-1-alternatives-module-seems-broken/17956 "2015-04-10T20:33:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nico\_K](https://avatars.discourse-cdn.com/v4/letter/n/46a35a/32.png) [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Post date:** [April 10, 2015, 8:33pm UTC](https://forum.ansible.com/t/ansible-1-9-0-1-alternatives-module-seems-broken/17956/1 "2015-04-10T20:33:17Z")

</div>

Just installed the latest version of Ansible through pip, since the upgrade the ‘alternatives’ module no longer seems to install a link if it doesn’t exist yet instead it just reports that there are no existing alternatives.

I’m calling the module with all required arguments (as before):

- name: …  
alternatives: \>  
name=‘sh’  
link=‘/bin/sh’  
path=‘/bin/bash’

result:

{“cmd”: “/usr/bin/update-alternatives --set sh /bin/bash”, “failed”: true, “rc”: 2}  
stderr: update-alternatives: error: no alternatives for sh

---

<div class="post-metadata">

**Author:** ![Nico\_K](https://avatars.discourse-cdn.com/v4/letter/n/46a35a/32.png) [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Post date:** [April 11, 2015, 6:29pm UTC](https://forum.ansible.com/t/ansible-1-9-0-1-alternatives-module-seems-broken/17956/2 "2015-04-11T18:29:13Z")

</div>

What I have noticed is that the installed version of alternatives.py does not seem to match what's currently in github, the version installed by pip seems to be many revisions back.

I even went as far as removing ansible completely and reinstalling, making sure there are no mix-ups with old installations and what have you, but a clean pip install gives me ansible 1.9.0.1 with as it seems an outdated version of the alternatives module.

---

<div class="post-metadata">

**Author:** ![Mark5](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Mark5](https://forum.ansible.com/u/Mark5)\
**Post date:** [April 13, 2015, 7:13pm UTC](https://forum.ansible.com/t/ansible-1-9-0-1-alternatives-module-seems-broken/17956/3 "2015-04-13T19:13:58Z")

</div>

I didn’t run into this particular issue, but I grabbed the trunk version of alternatives.py from git, added it as my own module (after a file rename), and it seemed to work okay under the new name… seems like it’s broken in 1.9.0.1 and I assume will be formally fixed in 1.9.0.2 or whatever is next.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [April 13, 2015, 7:18pm UTC](https://forum.ansible.com/t/ansible-1-9-0-1-alternatives-module-seems-broken/17956/4 "2015-04-13T19:18:42Z")

</div>

it should be fixed in upcomming 1.9.1
