roles/common: Update apt cache only if it's older than 1 hour

This commit is contained in:
Alan Orth 2018-12-20 09:40:10 +02:00
parent aeaa96b753
commit a15faabe32
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -28,7 +28,7 @@
- apt-transport-https # for https support in apt
- name: Install base packages
apt: pkg={{ ubuntu_base_packages }} state=present update_cache=yes
apt: pkg={{ ubuntu_base_packages }} state=present update_cache=yes cache_valid_time=3600
- name: Security hardening (CIS Benchmark 1.0)
apt: pkg={{ item }} state=absent purge=yes