Explorar el Código

[caddy] Use services instead of command

Colin Powell hace 4 años
padre
commit
f4e7545841
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      ansible/roles/caddy/handlers/main.yml

+ 3 - 1
ansible/roles/caddy/handlers/main.yml

@@ -1,3 +1,5 @@
 ---
 - name: Caddy restarted
-  command: service caddy restart
+  service:
+    name: caddy
+    state: restarted