ansible-role-server/handlers/main.yml

24 lines
335 B
YAML

---
# handlers file for server
- name: Restart sshd
service:
name: ssh
state: restarted
- name: Enable caddy
service:
name: caddy
enabled: yes
- name: Restart caddy
service:
name: caddy
state: restarted
- name: Enable and restart caddy
service:
name: caddy
state: restarted
enabled: yes