blob: b46950a74d908f1381510acb816b1e4c49eaa43a [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
David K. Bainbridge77a516a2016-10-27 10:57:57 -07008 apt_repository:
9 repo: "{{ java_apt_repo | default('ppa:webupd8team/java') }}"
10 update_cache: yes
Andy Bavier1b8a5372016-07-07 19:36:21 -040011
12- name: Accept Java 8 license
Zack Williams35624562016-08-28 17:12:26 -070013 become: yes
Andy Bavier1b8a5372016-07-07 19:36:21 -040014 debconf: name='oracle-java8-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select'
15
16- name: Install Oracle Java 8
Zack Williams35624562016-08-28 17:12:26 -070017 become: yes
18 apt: name={{item}} state=installed
Andy Bavier1b8a5372016-07-07 19:36:21 -040019 with_items:
20 - oracle-java8-installer
21 - ca-certificates
22 - oracle-java8-set-default