Skip to content

Commit 4f3d9a5

Browse files
committed
debian-apt: cache_valid_time without update_cache
Reading ansible doc `cache_valid_time` used without `update_cache` will not update apt cache. http://docs.ansible.com/ansible/apt_module.html ``` If update_cache is specified and the last run is less or equal than cache_valid_time seconds ago, the update_cache gets skipped. ``` Doc example : ``` - apt: update_cache=yes cache_valid_time=3600 ``` This commit add `update_cache` flag to ensure apt is updated to setup java.
1 parent 0610920 commit 4f3d9a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tasks/debian/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
name="oracle-java{{ oracle_java_version }}-installer"
1515
state={{ oracle_java_state }}
1616
cache_valid_time={{ oracle_java_cache_valid_time }}
17+
update_cache=yes
1718
register: oracle_java_task_apt_install
1819
sudo: yes
1920

0 commit comments

Comments
 (0)