From 0465d10b5d32d4944ddc3369ffcef4c9585a0299 Mon Sep 17 00:00:00 2001 From: c-bordon Date: Tue, 10 Oct 2023 09:28:18 -0300 Subject: [PATCH 1/2] Added apt update to Debian --- roles/wazuh/ansible-wazuh-agent/tasks/Debian.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/wazuh/ansible-wazuh-agent/tasks/Debian.yml b/roles/wazuh/ansible-wazuh-agent/tasks/Debian.yml index 1c9af638..0a93def2 100644 --- a/roles/wazuh/ansible-wazuh-agent/tasks/Debian.yml +++ b/roles/wazuh/ansible-wazuh-agent/tasks/Debian.yml @@ -1,4 +1,7 @@ --- +- name: Update apt-get repo and cache + apt: update_cache=yes force_apt_get=yes cache_valid_time=3600 + - name: Debian/Ubuntu | Install ca-certificates and gnupg apt: name: From df3aae738004044e5f3d47f0d449ac9b85ca399e Mon Sep 17 00:00:00 2001 From: c-bordon Date: Tue, 10 Oct 2023 12:31:47 -0300 Subject: [PATCH 2/2] Reorder apt update --- roles/wazuh/ansible-wazuh-agent/tasks/Debian.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/wazuh/ansible-wazuh-agent/tasks/Debian.yml b/roles/wazuh/ansible-wazuh-agent/tasks/Debian.yml index 0a93def2..ac49a71c 100644 --- a/roles/wazuh/ansible-wazuh-agent/tasks/Debian.yml +++ b/roles/wazuh/ansible-wazuh-agent/tasks/Debian.yml @@ -1,6 +1,9 @@ --- - name: Update apt-get repo and cache - apt: update_cache=yes force_apt_get=yes cache_valid_time=3600 + apt: + update_cache: yes + force_apt_get: yes + cache_valid_time: 3600 - name: Debian/Ubuntu | Install ca-certificates and gnupg apt: