library/roles/haproxy/tasks/haproxy-service.yml: Add the update_cache and cache_valid_time parameters to the apt modules.

This commit is contained in:
Andrea Dell'Amico 2017-07-11 16:36:30 +02:00
parent 1fc1d05687
commit 6b8a448c00
1 changed files with 3 additions and 3 deletions

View File

@ -19,13 +19,13 @@
tags: haproxy
- name: Install the haproxy package
apt: name=haproxy state=present default_release={{ ansible_lsb.codename }}-backports
apt: name=haproxy state=present default_release={{ ansible_lsb.codename }}-backports update_cache=yes cache_valid_time=3600
when: not haproxy_latest_release
register: install_haproxy
tags: haproxy
- name: Install the haproxy package
apt: name=haproxy state=latest default_release={{ ansible_lsb.codename }}-backports-{{ haproxy_version }}
apt: name=haproxy state=latest default_release={{ ansible_lsb.codename }}-backports-{{ haproxy_version }} update_cache=yes cache_valid_time=3600
when:
- haproxy_latest_release
- is_debian
@ -33,7 +33,7 @@
tags: haproxy
- name: Install the haproxy package
apt: name=haproxy state=latest
apt: name=haproxy state=latest update_cache=yes cache_valid_time=3600
when:
- haproxy_latest_release
- is_ubuntu