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