title: Java installation issue using ansible playbook
body: <p>I am trying to install the java8 using ansible playbook. Below is the yml file of my playbook:</p>
  
  <pre><code>---
  - hosts: test2
    become: true
    tasks:
    - name: install the java pre-requisties
      apt:
        name: software-properties-common 
        state: latest
    - name: add oracle java repository
      apt_repository:
           repo: 'ppa:webupd8team/java'
    - name: update repository
      apt: 
        update_cache: yes
    - name: Accept Java 8 License
      debconf:
       name: 'oracle-java8-installer' 
       question: 'shared/accepted-oracle-license-v1-1' 
       value: true 
       vtype: 'select'
    - name: install java 8
      apt: 
       name: oracle-java8-installer 
       force: yes
  </code></pre>
  
  <p>But i am getting the below error:</p>
  
  <p><code>fatal: [host2]: FAILED! =&gt; {"changed": false, "msg": "No package matching 'oracle-java8-installer' is available"}</code></p>
  
  <p>Can you please help me to fix the issue? </p>
  
  <p>Any assistance will be appreciated.
  Thanks in advance.</p>