Add conditional to fail2ban tasks

This commit is contained in:
phil 2023-03-11 21:41:19 +01:00
parent 0186e7ad6c
commit 979c4ce47b
2 changed files with 1 additions and 2 deletions

View file

@ -8,4 +8,3 @@
loop:
- "filter.d/nginx-req-limit.conf"
- "jail.d/nginx-req-limit.conf"

View file

@ -14,4 +14,4 @@
- name: "Configure fail2ban"
ansible.builtin.import_tasks: fail2ban.yml
tags: fail2ban
when: "'fail2ban' in ansible_facts.packages"