mirror of
https://github.com/luzifer-ansible/docker.git
synced 2024-11-14 00:22:42 +00:00
Use cache_valid_time for apt module
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
ec5a9d6198
commit
a50f6dbc72
1 changed files with 2 additions and 1 deletions
|
@ -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 }}"
|
||||||
|
|
Loading…
Reference in a new issue