소스 검색

[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