blob: 32fe37b17ff8f7e97d44a526928f3833d9cab78c [file] [log] [blame]
Andy Bavier1b8a5372016-07-07 19:36:21 -04001---
2- name: Install add-apt-repository
Zack Williams35624562016-08-28 17:12:26 -07003 become: yes
4 apt: name=software-properties-common state=installed
Andy Bavier1b8a5372016-07-07 19:36:21 -04005
6- name: Add Oracle Java repository
Zack Williams35624562016-08-28 17:12:26 -07007 become: yes
Andy Bavier1b8a5372016-07-07 19:36:21 -04008 apt_repository: repo='ppa:webupd8team/java'
9
10- name: Accept Java 8 license
Zack Williams35624562016-08-28 17:12:26 -070011 become: yes
Andy Bavier1b8a5372016-07-07 19:36:21 -040012 debconf: name='oracle-java8-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select'
13
14- name: Install Oracle Java 8
Zack Williams35624562016-08-28 17:12:26 -070015 become: yes
16 apt: name={{item}} state=installed
Andy Bavier1b8a5372016-07-07 19:36:21 -040017 with_items:
18 - oracle-java8-installer
19 - ca-certificates
20 - oracle-java8-set-default