update cache in role

This commit is contained in:
Denis Gorobets 2020-12-21 23:55:26 +03:00
parent e5adc9a528
commit 4a7787091f
2 changed files with 1 additions and 4 deletions

View File

@ -4,10 +4,6 @@
become: true
pre_tasks:
- name: Update apt cache.
apt: update_cache=yes cache_valid_time=600
when: ansible_os_family == 'Debian'
- name: Wait for systemd to complete initialization. # noqa 303
command: systemctl is-system-running
register: systemctl_status

View File

@ -13,6 +13,7 @@
- ca-certificates
- gnupg2
state: present
update_cache: true
- name: Add Docker apt key.
apt_key: