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
diff --git a/roles/java8-oracle/tasks/main.yml b/roles/java8-oracle/tasks/main.yml
index 46deb76..191c627 100644
--- a/roles/java8-oracle/tasks/main.yml
+++ b/roles/java8-oracle/tasks/main.yml
@@ -5,7 +5,7 @@
- name: Add Oracle Java Repository
become: yes
- apt_repository: repo='ppa:webupd8team/java'
+ apt_repository: repo='ppa:webupd8team/java' update_cache=yes
- name: Accept Java 8 License
become: yes