forked from ISTI-ansible-roles/ansible-roles
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:
parent
1fc1d05687
commit
6b8a448c00
|
@ -19,13 +19,13 @@
|
||||||
tags: haproxy
|
tags: haproxy
|
||||||
|
|
||||||
- name: Install the haproxy package
|
- 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
|
when: not haproxy_latest_release
|
||||||
register: install_haproxy
|
register: install_haproxy
|
||||||
tags: haproxy
|
tags: haproxy
|
||||||
|
|
||||||
- name: Install the haproxy package
|
- 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:
|
when:
|
||||||
- haproxy_latest_release
|
- haproxy_latest_release
|
||||||
- is_debian
|
- is_debian
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
tags: haproxy
|
tags: haproxy
|
||||||
|
|
||||||
- name: Install the haproxy package
|
- name: Install the haproxy package
|
||||||
apt: name=haproxy state=latest
|
apt: name=haproxy state=latest update_cache=yes cache_valid_time=3600
|
||||||
when:
|
when:
|
||||||
- haproxy_latest_release
|
- haproxy_latest_release
|
||||||
- is_ubuntu
|
- is_ubuntu
|
||||||
|
|
Loading…
Reference in New Issue