Use cache_valid_time for apt module

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-03-19 16:08:13 +01:00
parent ec5a9d6198
commit a50f6dbc72
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -8,6 +8,7 @@
- name: Ensure https transport to be available - name: Ensure https transport to be available
apt: apt:
name: apt-transport-https name: apt-transport-https
cache_valid_time: 86400
- name: Activate apt-repo - name: Activate apt-repo
apt_repository: apt_repository:
@ -17,7 +18,7 @@
- name: Install docker - name: Install docker
apt: apt:
name: docker-ce name: docker-ce
update_cache: yes cache_valid_time: 86400
- set_fact: - set_fact:
docker_global_ipv6: "{{ ansible_eth0.ipv6 | selectattr('scope', 'equalto', 'global') | first }}" docker_global_ipv6: "{{ ansible_eth0.ipv6 | selectattr('scope', 'equalto', 'global') | first }}"