blob: 809fbee4d0d0a313d02b365431b34f881bbd5825 [file] [log] [blame]
---
- name: Install add-apt-repository
sudo: yes
apt: name=software-properties-common state=latest
- name: Add Oracle Java repository
sudo: yes
apt_repository: repo='ppa:webupd8team/java'
- name: Accept Java 8 license
sudo: yes
debconf: name='oracle-java8-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select'
- name: Install Oracle Java 8
sudo: yes
apt: name={{item}} state=latest
with_items:
- oracle-java8-installer
- ca-certificates
- oracle-java8-set-default