Matteo Scandolo | 60b640f | 2017-08-08 13:05:22 -0700 | [diff] [blame] | 1 | |
| 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 Haraszti | ec7df10 | 2016-05-05 13:34:18 -0700 | [diff] [blame] | 17 | --- |
| 18 | - name: Install add-apt-repository |
David K. Bainbridge | f5ffb0d | 2016-11-04 16:14:54 +0100 | [diff] [blame] | 19 | become: yes |
| 20 | apt: |
| 21 | name: software-properties-common |
| 22 | state: latest |
| 23 | tags: |
| 24 | - skip_ansible_lint |
Zsolt Haraszti | ec7df10 | 2016-05-05 13:34:18 -0700 | [diff] [blame] | 25 | |
| 26 | - name: Add Oracle Java repository |
David K. Bainbridge | f5ffb0d | 2016-11-04 16:14:54 +0100 | [diff] [blame] | 27 | become: yes |
David K. Bainbridge | 1705b81 | 2016-10-27 11:00:04 -0700 | [diff] [blame] | 28 | apt_repository: |
David K. Bainbridge | 31d08c2 | 2016-10-27 17:34:56 -0700 | [diff] [blame] | 29 | repo: 'ppa:webupd8team/java' |
Andy Bavier | 825e159 | 2017-02-24 16:28:01 -0500 | [diff] [blame] | 30 | register: result |
| 31 | until: result | success |
| 32 | retries: 3 |
| 33 | delay: 10 |
Zsolt Haraszti | ec7df10 | 2016-05-05 13:34:18 -0700 | [diff] [blame] | 34 | |
| 35 | - name: Accept Java 8 license |
David K. Bainbridge | f5ffb0d | 2016-11-04 16:14:54 +0100 | [diff] [blame] | 36 | become: yes |
Zsolt Haraszti | ec7df10 | 2016-05-05 13:34:18 -0700 | [diff] [blame] | 37 | 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. Bainbridge | f5ffb0d | 2016-11-04 16:14:54 +0100 | [diff] [blame] | 40 | become: yes |
| 41 | apt: |
| 42 | name: "{{item}}" |
| 43 | state: latest |
Zsolt Haraszti | ec7df10 | 2016-05-05 13:34:18 -0700 | [diff] [blame] | 44 | with_items: |
| 45 | - oracle-java8-installer |
| 46 | - ca-certificates |
| 47 | - oracle-java8-set-default |
David K. Bainbridge | f5ffb0d | 2016-11-04 16:14:54 +0100 | [diff] [blame] | 48 | tags: |
| 49 | - skip_ansible_lint |