ansible-role-server/handlers/main.yml

28 lines
461 B
YAML
Raw Normal View History

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