blob: 090d6a938ea6aee9e78c0a21c5f9b92c12611cc4 [file] [log] [blame]
Matteo Scandolo60b640f2017-08-08 13:05:22 -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
Zsolt Harasztiec7df102016-05-05 13:34:18 -070017---
18- name: Install add-apt-repository
David K. Bainbridgef5ffb0d2016-11-04 16:14:54 +010019 become: yes
20 apt:
21 name: software-properties-common
22 state: latest
23 tags:
24 - skip_ansible_lint
Zsolt Harasztiec7df102016-05-05 13:34:18 -070025
26- name: Add Oracle Java repository
David K. Bainbridgef5ffb0d2016-11-04 16:14:54 +010027 become: yes
David K. Bainbridge1705b812016-10-27 11:00:04 -070028 apt_repository:
David K. Bainbridge31d08c22016-10-27 17:34:56 -070029 repo: 'ppa:webupd8team/java'
Andy Bavier825e1592017-02-24 16:28:01 -050030 register: result
31 until: result | success
32 retries: 3
33 delay: 10
Zsolt Harasztiec7df102016-05-05 13:34:18 -070034
35- name: Accept Java 8 license
David K. Bainbridgef5ffb0d2016-11-04 16:14:54 +010036 become: yes
Zsolt Harasztiec7df102016-05-05 13:34:18 -070037 debconf: name='oracle-java8-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select'
38
39- name: Install Oracle Java 8
David K. Bainbridgef5ffb0d2016-11-04 16:14:54 +010040 become: yes
41 apt:
42 name: "{{item}}"
43 state: latest
Zsolt Harasztiec7df102016-05-05 13:34:18 -070044 with_items:
45 - oracle-java8-installer
46 - ca-certificates
47 - oracle-java8-set-default
David K. Bainbridgef5ffb0d2016-11-04 16:14:54 +010048 tags:
49 - skip_ansible_lint