library/roles/oracle-jdk/tasks/main.yml: Always update the cache before installing.

library/roles/oracle-jdk/defaults/main.yml: 'latest' is now the default.
This commit is contained in:
Andrea Dell'Amico 2016-06-22 17:03:23 +02:00
parent e02913abe5
commit dffcdca5f6
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ jdk_default: 7
jdk_version:
- '{{ jdk_default }}'
jdk_java_home: '/usr/lib/jvm/java-{{ jdk_default }}-oracle'
jdk_pkg_state: installed
jdk_pkg_state: latest
oracle_jdk_packages:
- 'oracle-java{{ jdk_default }}-installer'
- 'oracle-java{{ jdk_default }}-set-default'

View File

@ -15,7 +15,7 @@
tags: [ 'oracle_jdk', 'jdk' ]
- name: Install the latest version of Oracle JDK
apt: pkg={{ item }} state={{ jdk_pkg_state }} force=yes
apt: pkg={{ item }} state={{ jdk_pkg_state }} force=yes update_cache=yes
when: not jdk_use_tarfile
with_items: '{{ oracle_jdk_packages }}'
tags: [ 'oracle_jdk', 'jdk' ]