Add conditional to fail2ban tasks
This commit is contained in:
parent
0186e7ad6c
commit
979c4ce47b
2 changed files with 1 additions and 2 deletions
|
@ -8,4 +8,3 @@
|
||||||
loop:
|
loop:
|
||||||
- "filter.d/nginx-req-limit.conf"
|
- "filter.d/nginx-req-limit.conf"
|
||||||
- "jail.d/nginx-req-limit.conf"
|
- "jail.d/nginx-req-limit.conf"
|
||||||
|
|
|
@ -14,4 +14,4 @@
|
||||||
- name: "Configure fail2ban"
|
- name: "Configure fail2ban"
|
||||||
ansible.builtin.import_tasks: fail2ban.yml
|
ansible.builtin.import_tasks: fail2ban.yml
|
||||||
tags: fail2ban
|
tags: fail2ban
|
||||||
|
when: "'fail2ban' in ansible_facts.packages"
|
||||||
|
|
Loading…
Reference in a new issue