ansible-role-server/handlers/main.yml
2021-08-20 14:16:37 +02:00

28 lines
391 B
YAML

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