forked from ISTI-ansible-roles/ansible-roles
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:
parent
e02913abe5
commit
dffcdca5f6
|
@ -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'
|
||||
|
|
|
@ -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' ]
|
||||
|
|
Loading…
Reference in New Issue