blob: 8573f437278d6b9c2e0054dada8e96300994ea81 [file] [log] [blame]
---
- name: Install add-apt-repostory
become: yes
apt: name=software-properties-common state=latest update_cache=yes
- name: Add Oracle Java Repository
become: yes
apt_repository:
repo: "{{ java_apt_repo | default('ppa:webupd8team/java') }}"
update_cache: yes
- name: Accept Java 8 License
become: yes
debconf: name='oracle-java8-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select'
- name: Install Oracle Java 8
become: yes
apt: name={{item}} state=latest
with_items:
- oracle-java8-installer
- ca-certificates
- oracle-java8-set-default