You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
640 B
28 lines
640 B
# based on https://github.com/malk/ansible-java8-oracle
|
|
- name: Install add-apt-repostory
|
|
become: yes
|
|
apt:
|
|
name: software-properties-common
|
|
state: latest
|
|
|
|
- name: Add Oracle Java Repository
|
|
become: yes
|
|
apt_repository:
|
|
repo: ppa:webupd8team/java
|
|
state: present
|
|
|
|
- name: Accept Java 8 License
|
|
become: yes
|
|
debconf:
|
|
name: 'oracle-java8-installer'
|
|
question: 'shared/accepted-oracle-license-v1-1'
|
|
value: 'true'
|
|
vtype: 'select'
|
|
|
|
- name: Install Oracle Java 8
|
|
become: yes
|
|
apt: name={{item}} state=latest
|
|
with_items:
|
|
- oracle-java8-installer
|
|
- ca-certificates
|
|
- oracle-java8-set-default
|
|
|