7 lines
563 B
YAML
7 lines
563 B
YAML
---
|
|
# handlers file for fail2ban
|
|
- name: restart fail2ban
|
|
service:
|
|
name: fail2ban # required. Name of the service.
|
|
state: restarted # not required. choices: reloaded;restarted;started;stopped. C(started)/C(stopped) are idempotent actions that will not run commands unless necessary. C(restarted) will always bounce the service. C(reloaded) will always reload. B(At least one of state and enabled are required.) Note that reloaded will start the service if it is not already started, even if your chosen init system wouldn't normally.
|
|
become: yes |