summaryrefslogtreecommitdiffstats
path: root/roles/common/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'roles/common/handlers')
-rw-r--r--roles/common/handlers/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/common/handlers/main.yml b/roles/common/handlers/main.yml
index e23e099..2ef3253 100644
--- a/roles/common/handlers/main.yml
+++ b/roles/common/handlers/main.yml
@@ -18,3 +18,9 @@
- name: Restart fail2ban
service: name=fail2ban state=restarted
+
+- name: Missing IPSec certificate
+ fail: msg="strongswan IPsec is lacking public or private keys on '{{ ansible_fqdn }}'."
+
+- name: Restart IPSec
+ service: name=ipsec state=restarted