update the cache when adding a ppa
diff --git a/ansible/roles/java8-oracle/tasks/main.yml b/ansible/roles/java8-oracle/tasks/main.yml
index e3f7083..c38dd54 100644
--- a/ansible/roles/java8-oracle/tasks/main.yml
+++ b/ansible/roles/java8-oracle/tasks/main.yml
@@ -5,7 +5,7 @@
 
 - name: Add Oracle Java repository
   sudo: yes
-  apt_repository: repo='ppa:webupd8team/java'
+  apt_repository: repo='ppa:webupd8team/java' update_cache=yes
 
 - name: Accept Java 8 license
   sudo: yes