blob: 9bdc9468c08fe3b8dc496fe272fe732aeb9917e7 [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. Bainbridge3b3fda02016-05-24 00:54:48 -07008 apt_repository: repo='ppa:webupd8team/java' update_cache=yes
David K. Bainbridgeb5415042016-05-13 17:06:10 -07009
10- name: Accept Java 8 license
David K. Bainbridge17248c02016-08-29 17:04:34 -070011 become: yes
David K. Bainbridgeb5415042016-05-13 17:06:10 -070012 debconf: name='oracle-java8-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select'
13
14- name: Install Oracle Java 8
David K. Bainbridge17248c02016-08-29 17:04:34 -070015 become: yes
16 apt: name={{item}} state=present
David K. Bainbridgeb5415042016-05-13 17:06:10 -070017 with_items:
David K. Bainbridge17248c02016-08-29 17:04:34 -070018 - oracle-java8-installer=8*
19 - ca-certificates=14.04*
20 - oracle-java8-set-default=8*