1
1
Fork 0
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:
firesoft-de 2021-04-12 12:30:52 +02:00 committed by GitHub
parent 552747dda9
commit 18bb3f9c44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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