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