title: How to install Oracle Java 8 using Ansible
body: <pre><code>sudo add-apt-repository ppa:webupd8team/java
  sudo apt-get update
  sudo apt-get install oracle-java8-installer
  </code></pre>
  
  <p>This installer has 2 full screen prompts and ansible fails when trying to install this package.</p>
  
  <pre><code>- 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
  </code></pre>