From 908f96b51ae58012adceadcd0c57685f10fe30a6 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Sun, 19 Nov 2023 01:51:00 +0530 Subject: [PATCH] feat: cache apt updates --- ansible/base.yml | 1 + ansible/roles/docker_compose/tasks/main.yml | 1 + ansible/roles/ntp/tasks/main.yml | 1 + ansible/roles/ufw/tasks/main.yml | 1 + 4 files changed, 4 insertions(+) diff --git a/ansible/base.yml b/ansible/base.yml index dd36975..6804a12 100644 --- a/ansible/base.yml +++ b/ansible/base.yml @@ -17,6 +17,7 @@ become: true ansible.builtin.apt: update_cache: true + cache_valid_time: 3600 pkg: - git - wget diff --git a/ansible/roles/docker_compose/tasks/main.yml b/ansible/roles/docker_compose/tasks/main.yml index 8b6134e..196d6ab 100644 --- a/ansible/roles/docker_compose/tasks/main.yml +++ b/ansible/roles/docker_compose/tasks/main.yml @@ -7,5 +7,6 @@ become: true ansible.builtin.apt: update_cache: true + cache_valid_time: 3600 pkg: - docker-compose diff --git a/ansible/roles/ntp/tasks/main.yml b/ansible/roles/ntp/tasks/main.yml index 8093072..fc8c13d 100644 --- a/ansible/roles/ntp/tasks/main.yml +++ b/ansible/roles/ntp/tasks/main.yml @@ -7,6 +7,7 @@ become: true ansible.builtin.apt: update_cache: true + cache_valid_time: 3600 pkg: - ntp diff --git a/ansible/roles/ufw/tasks/main.yml b/ansible/roles/ufw/tasks/main.yml index 25399b1..fa5a70f 100644 --- a/ansible/roles/ufw/tasks/main.yml +++ b/ansible/roles/ufw/tasks/main.yml @@ -7,6 +7,7 @@ become: true ansible.builtin.apt: update_cache: true + cache_valid_time: 3600 pkg: - ufw