ctucx.git: ansible-configs

My personal ansible roles and playbooks

commit 6fc0fbad71fccd5663b00deb7940860e59ac1516
parent 417c7ab12030401f7a1df99d342ec66f575855fa
Author: Leah (ctucx) <leah@ctu.cx>
Date: Mon, 22 Feb 2021 19:06:33 +0100

roles/nginx: check if config is valid
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/roles/nginx/handlers/main.yml b/roles/nginx/handlers/main.yml
@@ -1,5 +1,10 @@
 ---
 
+- name: Check nginx config for errors
+  shell: nginx -t
+  changed_when: True
+  listen: "Restart nginx"
+
 - name: "[OpenRC] Restart service: nginx (to deploy config changes)"
   service:
     name: nginx