From 2c1968e15905d67fbfc7d719666e8e1de7046bb1 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Sun, 22 Oct 2023 12:50:14 +0200 Subject: [PATCH] fix(fail2ban): Add package cache update --- node-configuration/tasks/ssh.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/node-configuration/tasks/ssh.yml b/node-configuration/tasks/ssh.yml index 926c966..7c35b29 100644 --- a/node-configuration/tasks/ssh.yml +++ b/node-configuration/tasks/ssh.yml @@ -10,6 +10,11 @@ dest: /etc/fail2ban/fail2ban.conf backup: yes +- name: Update package cache (apt/Debian) + ansible.builtin.apt: + update_cache: yes + when: ansible_distribution == "Debian" + - name: Install fail2ban ansible.builtin.package: name: fail2ban