Skip to content

Commit

Permalink
Merge pull request #96 from BrutalBirdie/fix/#95
Browse files Browse the repository at this point in the history
Add Handler for reload of fail2ban.service and add notify to template task of jail.local
  • Loading branch information
geerlingguy authored Oct 24, 2023
2 parents d02400d + 173010e commit 4700aef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
service:
name: "{{ security_sshd_name }}"
state: "{{ security_ssh_restart_handler_state }}"

- name: reload fail2ban
service:
name: fail2ban
state: reloaded
2 changes: 2 additions & 0 deletions tasks/fail2ban.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
owner: root
group: root
mode: 0644
notify:
- reload fail2ban

Check failure on line 23 in tasks/fail2ban.yml

View workflow job for this annotation

GitHub Actions / Lint

23:4 [indentation] wrong indentation: expected 4 but found 3

Check failure on line 23 in tasks/fail2ban.yml

View workflow job for this annotation

GitHub Actions / Lint

23:4 [indentation] wrong indentation: expected 4 but found 3

Check failure on line 23 in tasks/fail2ban.yml

View workflow job for this annotation

GitHub Actions / Lint

23:4 [indentation] wrong indentation: expected 4 but found 3

Check failure on line 23 in tasks/fail2ban.yml

View workflow job for this annotation

GitHub Actions / Lint

23:4 [indentation] wrong indentation: expected 4 but found 3

Check failure on line 23 in tasks/fail2ban.yml

View workflow job for this annotation

GitHub Actions / Lint

23:4 [indentation] wrong indentation: expected 4 but found 3

Check failure on line 23 in tasks/fail2ban.yml

View workflow job for this annotation

GitHub Actions / Lint

23:4 [indentation] wrong indentation: expected 4 but found 3

Check failure on line 23 in tasks/fail2ban.yml

View workflow job for this annotation

GitHub Actions / Lint

23:4 [indentation] wrong indentation: expected 4 but found 3

Check failure on line 23 in tasks/fail2ban.yml

View workflow job for this annotation

GitHub Actions / Lint

23:4 [indentation] wrong indentation: expected 4 but found 3

Check failure on line 23 in tasks/fail2ban.yml

View workflow job for this annotation

GitHub Actions / Lint

23:4 [indentation] wrong indentation: expected 4 but found 3

Check failure on line 23 in tasks/fail2ban.yml

View workflow job for this annotation

GitHub Actions / Lint

23:4 [indentation] wrong indentation: expected 4 but found 3

Check failure on line 23 in tasks/fail2ban.yml

View workflow job for this annotation

GitHub Actions / Lint

23:4 [indentation] wrong indentation: expected 4 but found 3

Check failure on line 23 in tasks/fail2ban.yml

View workflow job for this annotation

GitHub Actions / Lint

23:4 [indentation] wrong indentation: expected 4 but found 3

Check failure on line 23 in tasks/fail2ban.yml

View workflow job for this annotation

GitHub Actions / Lint

23:4 [indentation] wrong indentation: expected 4 but found 3

Check failure on line 23 in tasks/fail2ban.yml

View workflow job for this annotation

GitHub Actions / Lint

23:4 [indentation] wrong indentation: expected 4 but found 3

- name: Ensure fail2ban is running and enabled on boot.
service:
Expand Down

0 comments on commit 4700aef

Please sign in to comment.