From d4b51007f76374862423cd7241fee0985754e595 Mon Sep 17 00:00:00 2001 From: rubenb Date: Wed, 18 Oct 2023 15:25:42 +0200 Subject: [PATCH] update --- .../base-config-debian/roles/config-fail2ban/tasks/main.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linux/base-config-debian/roles/config-fail2ban/tasks/main.yaml b/linux/base-config-debian/roles/config-fail2ban/tasks/main.yaml index e895f48..967fd81 100644 --- a/linux/base-config-debian/roles/config-fail2ban/tasks/main.yaml +++ b/linux/base-config-debian/roles/config-fail2ban/tasks/main.yaml @@ -19,7 +19,9 @@ apt: name: fail2ban state: present - when: packages.stdout.find('fail2ban') == "" +# when: packages.stdout.find('fail2ban') == "" +# when: "{{ packages['fail2ban'] | length }}" + when: "'fail2ban' not defined packages.stdout" # config fail2ban if is there is in the system #- name: config fail2ban