浏览代码

[caddy] Use services instead of command

Colin Powell 4 年之前
父节点
当前提交
f4e7545841
共有 1 个文件被更改,包括 3 次插入1 次删除
  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