Andy Bavier | 1b8a537 | 2016-07-07 19:36:21 -0400 | [diff] [blame] | 1 | --- |
| 2 | - name: Install add-apt-repository |
Zack Williams | 3562456 | 2016-08-28 17:12:26 -0700 | [diff] [blame] | 3 | become: yes |
| 4 | apt: name=software-properties-common state=installed |
Andy Bavier | 1b8a537 | 2016-07-07 19:36:21 -0400 | [diff] [blame] | 5 | |
| 6 | - name: Add Oracle Java repository |
Zack Williams | 3562456 | 2016-08-28 17:12:26 -0700 | [diff] [blame] | 7 | become: yes |
David K. Bainbridge | 77a516a | 2016-10-27 10:57:57 -0700 | [diff] [blame] | 8 | apt_repository: |
| 9 | repo: "{{ java_apt_repo | default('ppa:webupd8team/java') }}" |
| 10 | update_cache: yes |
Andy Bavier | 1b8a537 | 2016-07-07 19:36:21 -0400 | [diff] [blame] | 11 | |
| 12 | - name: Accept Java 8 license |
Zack Williams | 3562456 | 2016-08-28 17:12:26 -0700 | [diff] [blame] | 13 | become: yes |
Andy Bavier | 1b8a537 | 2016-07-07 19:36:21 -0400 | [diff] [blame] | 14 | debconf: name='oracle-java8-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select' |
| 15 | |
| 16 | - name: Install Oracle Java 8 |
Zack Williams | 3562456 | 2016-08-28 17:12:26 -0700 | [diff] [blame] | 17 | become: yes |
| 18 | apt: name={{item}} state=installed |
Andy Bavier | 1b8a537 | 2016-07-07 19:36:21 -0400 | [diff] [blame] | 19 | with_items: |
| 20 | - oracle-java8-installer |
| 21 | - ca-certificates |
| 22 | - oracle-java8-set-default |