diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index b783b8d..3fa8cee 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -1,4 +1,10 @@ --- +- name: Update apt cache if needed + become: yes + apt: + update_cache=yes + cache_valid_time=3600 + - name: Install generic deps apt: pkg: @@ -17,4 +23,4 @@ dest: /etc/apt/apt.conf.d/20auto-upgrades owner: root group: root - mode: 0644 \ No newline at end of file + mode: 0644