From d086e775bfc53765461e514bf823012fed9d6cae Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Fri, 6 Jan 2023 10:53:29 +0200
Subject: [PATCH] renew-certs: Always run handlers.

Because of the convoluted way I'm running tasks, there's only 1 host in
the play but the handlers are for the remote hosts. Run them even if
there's a failure to restart whatever is needed since the failure will
always be for the local host.
---
 Ansible/renew-certs.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Ansible/renew-certs.yaml b/Ansible/renew-certs.yaml
index a07c9c1..e02af56 100644
--- a/Ansible/renew-certs.yaml
+++ b/Ansible/renew-certs.yaml
@@ -2,6 +2,7 @@
 - name: Generate keys and certificates
   hosts:
     - localhost
+  force_handlers: true
   gather_facts: false
   handlers:
     - name: Restart Nginx on host01
-- 
GitLab