blob: 5ae864650a6cee33373b8f94fb44fc03cbdcc3f1 [file] [log] [blame]
David K. Bainbridge317e7d72016-05-11 08:31:44 -07001---
2- name: Install add-apt-repostory
3 become: yes
alshabibecabc362016-05-23 22:18:11 -07004 apt: name=software-properties-common state=latest update_cache=yes
David K. Bainbridge317e7d72016-05-11 08:31:44 -07005
6- name: Add Oracle Java Repository
7 become: yes
David K. Bainbridgeca68f062016-10-27 11:04:33 -07008 apt_repository:
9 repo: "{{ java_apt_repo | default('ppa:webupd8team/java') }}"
10 update_cache: yes
Andy Baviere8823062017-02-24 16:34:01 -050011 register: result
12 until: result | success
13 retries: 3
14 delay: 10
David K. Bainbridge317e7d72016-05-11 08:31:44 -070015
16- name: Accept Java 8 License
17 become: yes
18 debconf: name='oracle-java8-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select'
19
20- name: Install Oracle Java 8
21 become: yes
22 apt: name={{item}} state=latest
23 with_items:
24 - oracle-java8-installer
25 - ca-certificates
26 - oracle-java8-set-default