Revert "Only update packages indexes if the cache is 1 hour old"
This reverts commit 201165cff6
.
Turns out this actually breaks initial deployments, because the
cache gets updated in the first task, then you add sources for
nginx and mariadb, but it doesn't update the indexes because the
cache is < 3600 seconds old, so you end up getting the distro's
versions of nginx and mariadb.
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
template: src=sources.list.j2 dest=/etc/apt/sources.list owner=root group=root mode=0644
|
||||
|
||||
- name: Install base packages
|
||||
apt: name={{ item }} update_cache=yes cache_valid_time=3600
|
||||
apt: name={{ item }} update_cache=yes
|
||||
with_items:
|
||||
- git
|
||||
- tmux
|
||||
|
Reference in New Issue
Block a user