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 become: true
pre_tasks: 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 - name: Wait for systemd to complete initialization. # noqa 303
command: systemctl is-system-running command: systemctl is-system-running
register: systemctl_status register: systemctl_status

View File

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