David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 1 | --- |
| 2 | - name: Install add-apt-repository |
David K. Bainbridge | 17248c0 | 2016-08-29 17:04:34 -0700 | [diff] [blame] | 3 | become: yes |
| 4 | apt: name=software-properties-common=0.92* state=present update_cache=yes |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 5 | |
| 6 | - name: Add Oracle Java repository |
David K. Bainbridge | 17248c0 | 2016-08-29 17:04:34 -0700 | [diff] [blame] | 7 | become: yes |
David K. Bainbridge | ca68f06 | 2016-10-27 11:04:33 -0700 | [diff] [blame] | 8 | apt_repository: |
| 9 | repo: "{{ java_apt_repo | default('ppa:webupd8team/java') }}" |
| 10 | update_cache: yes |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 11 | |
| 12 | - name: Accept Java 8 license |
David K. Bainbridge | 17248c0 | 2016-08-29 17:04:34 -0700 | [diff] [blame] | 13 | become: yes |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [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 |
David K. Bainbridge | 17248c0 | 2016-08-29 17:04:34 -0700 | [diff] [blame] | 17 | become: yes |
| 18 | apt: name={{item}} state=present |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 19 | with_items: |
David K. Bainbridge | 17248c0 | 2016-08-29 17:04:34 -0700 | [diff] [blame] | 20 | - oracle-java8-installer=8* |
| 21 | - ca-certificates=14.04* |
| 22 | - oracle-java8-set-default=8* |