Ansible 1.9.0.1 - alternatives module seems broken

160 views
Skip to first unread message

Nico K.

unread,
Apr 10, 2015, 4:33:17 PM4/10/15
to ansible...@googlegroups.com
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


Nico K.

unread,
Apr 11, 2015, 2:29:13 PM4/11/15
to ansible...@googlegroups.com
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.

Mark

unread,
Apr 13, 2015, 3:18:21 PM4/13/15
to ansible...@googlegroups.com
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.

Brian Coca

unread,
Apr 13, 2015, 3:18:45 PM4/13/15
to ansible...@googlegroups.com
it should be fixed in upcomming 1.9.1
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/9a64cdcf-a496-4234-ba9d-3f37e340e3ea%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
Brian Coca
Reply all
Reply to author
Forward
0 new messages