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


-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b582259c-0608-4521-a0df-c5b20838780d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to