This question already has an answer here:
Closed 2 years ago.
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
This installer has 2 full screen prompts and ansible fails when trying to install this package.
- name: Add Oracle Java PPA
apt_repository:
repo: ppa:webupd8team/java
state: present
- name: Install Java 8
apt:
name: oracle-java8-installer
update_cache: yes