blob: 32fe37b17ff8f7e97d44a526928f3833d9cab78c [file] [log] [blame]
---
- name: Install add-apt-repository
become: yes
apt: name=software-properties-common state=installed
- name: Add Oracle Java repository
become: yes
apt_repository: repo='ppa:webupd8team/java'
- 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=installed
with_items:
- oracle-java8-installer
- ca-certificates
- oracle-java8-set-default