blob: a8f6d713d6d350fe052740d7ac809f0bbe239cb9 [file] [log] [blame]
Jonathan Hart93956f52017-08-22 13:12:42 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
David K. Bainbridgeb5415042016-05-13 17:06:10 -070017---
18- name: Install add-apt-repository
David K. Bainbridge17248c02016-08-29 17:04:34 -070019 become: yes
20 apt: name=software-properties-common=0.92* state=present update_cache=yes
David K. Bainbridgeb5415042016-05-13 17:06:10 -070021
22- name: Add Oracle Java repository
David K. Bainbridge17248c02016-08-29 17:04:34 -070023 become: yes
David K. Bainbridgeca68f062016-10-27 11:04:33 -070024 apt_repository:
25 repo: "{{ java_apt_repo | default('ppa:webupd8team/java') }}"
26 update_cache: yes
David K. Bainbridgeb5415042016-05-13 17:06:10 -070027
28- name: Accept Java 8 license
David K. Bainbridge17248c02016-08-29 17:04:34 -070029 become: yes
David K. Bainbridgeb5415042016-05-13 17:06:10 -070030 debconf: name='oracle-java8-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select'
31
32- name: Install Oracle Java 8
David K. Bainbridge17248c02016-08-29 17:04:34 -070033 become: yes
34 apt: name={{item}} state=present
David K. Bainbridgeb5415042016-05-13 17:06:10 -070035 with_items:
David K. Bainbridge17248c02016-08-29 17:04:34 -070036 - oracle-java8-installer=8*
37 - ca-certificates=14.04*
38 - oracle-java8-set-default=8*