roles/common: Update apt cache only if it's older than 1 hour
This commit is contained in:
parent
aeaa96b753
commit
a15faabe32
@ -28,7 +28,7 @@
|
|||||||
- apt-transport-https # for https support in apt
|
- apt-transport-https # for https support in apt
|
||||||
|
|
||||||
- name: Install base packages
|
- 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)
|
- name: Security hardening (CIS Benchmark 1.0)
|
||||||
apt: pkg={{ item }} state=absent purge=yes
|
apt: pkg={{ item }} state=absent purge=yes
|
||||||
|
Loading…
Reference in New Issue
Block a user