I tried using the debian-specific update-alternatives module but this did 
not work.  Very simply, I have a command that when executed from the 
command line on the server itself works fine but via a task in our playbook 
says it succeeded but in reality has no effect.

Very simply, I am trying to do:

- name: "Use our version of java as default command"

shell: /usr/sbin/alternatives --set java /usr/local/java/bin/java


The playbook runs as root on the remote machine so I doubt it is a 
permissions issue - anyone else encounter this?

-- 
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/6fcc3019-a810-40f1-81a3-af55765da81e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to