mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
Added condition to only configure fail2ban if it is installed
This commit is contained in:
parent
552747dda9
commit
18bb3f9c44
1 changed files with 2 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
||||||
group: root
|
group: root
|
||||||
mode: 0444
|
mode: 0444
|
||||||
notify: systemctl restart fail2ban
|
notify: systemctl restart fail2ban
|
||||||
|
when: 'fail2ban' in ansible_facts.packages
|
||||||
|
|
||||||
- name: Install fail2ban jail
|
- name: Install fail2ban jail
|
||||||
become: true
|
become: true
|
||||||
|
@ -18,3 +19,4 @@
|
||||||
group: root
|
group: root
|
||||||
mode: 0444
|
mode: 0444
|
||||||
notify: systemctl restart fail2ban
|
notify: systemctl restart fail2ban
|
||||||
|
when: 'fail2ban' in ansible_facts.packages
|
||||||
|
|
Loading…
Reference in a new issue