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