ansible-roles/openjdk/handlers/main.yml

15 lines
424 B
YAML
Raw Normal View History

---
- name: Set OpenJDK 6 as default
shell: update-java-alternatives -s java-1.6.0-openjdk-amd64
- name: Set OpenJDK 7 as default
shell: update-java-alternatives -s java-1.7.0-openjdk-amd64
- name: Set OpenJDK 8 as default
shell: update-java-alternatives -s java-1.8.0-openjdk-amd64
- name: Set the default OpenJDK
shell: update-java-alternatives -s java-'{{ item }}'-openjdk-amd64
with_items: openjdk_default