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 9c9e508..1cf456c 100644 --- a/linux/base-config-debian/roles/config-fail2ban/tasks/main.yaml +++ b/linux/base-config-debian/roles/config-fail2ban/tasks/main.yaml @@ -22,7 +22,7 @@ state: present # when: packages.stdout.find('fail2ban') == "" # when: "{{ packages['fail2ban'] | length }}" - when: "'fail2ban' undefined in ansible_facts.packages" + when: "'fail2ban' in ansible_facts.packages is undefined" # config fail2ban if is there is in the system #- name: config fail2ban