Revert "Only update packages indexes if the cache is 1 hour old"

This reverts commit 201165cff662caad9b51508272e7f8f2eece7b0c.

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:
2016-08-25 12:58:15 +03:00
parent da6d1e05b9
commit 8851f8f631
8 changed files with 8 additions and 8 deletions

View File

@ -15,7 +15,7 @@
tags: mariadb, packages
- name: Install mariadb-server
apt: name={{ item }} state=present update_cache=yes cache_valid_time=3600
apt: name={{ item }} state=present update_cache=yes
with_items:
- mariadb-server
- python-mysqldb # for ansible