blob: 3c3111042b9858684a3fae16b99f2210eff38562 [file] [log] [blame]
David K. Bainbridgeb5415042016-05-13 17:06:10 -07001---
2- name: Install add-apt-repository
David K. Bainbridge17248c02016-08-29 17:04:34 -07003 become: yes
4 apt: name=software-properties-common=0.92* state=present update_cache=yes
David K. Bainbridgeb5415042016-05-13 17:06:10 -07005
6- name: Add Oracle Java repository
David K. Bainbridge17248c02016-08-29 17:04:34 -07007 become: yes
David K. Bainbridgeca68f062016-10-27 11:04:33 -07008 apt_repository:
9 repo: "{{ java_apt_repo | default('ppa:webupd8team/java') }}"
10 update_cache: yes
David K. Bainbridgeb5415042016-05-13 17:06:10 -070011
12- name: Accept Java 8 license
David K. Bainbridge17248c02016-08-29 17:04:34 -070013 become: yes
David K. Bainbridgeb5415042016-05-13 17:06:10 -070014 debconf: name='oracle-java8-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select'
15
16- name: Install Oracle Java 8
David K. Bainbridge17248c02016-08-29 17:04:34 -070017 become: yes
18 apt: name={{item}} state=present
David K. Bainbridgeb5415042016-05-13 17:06:10 -070019 with_items:
David K. Bainbridge17248c02016-08-29 17:04:34 -070020 - oracle-java8-installer=8*
21 - ca-certificates=14.04*
22 - oracle-java8-set-default=8*