Browse Source

[caddy] Use services instead of command

Colin Powell 4 years ago
parent
commit
f4e7545841
1 changed files with 3 additions and 1 deletions
  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