ansible-role-server/handlers/main.yml

28 lines
455 B
YAML
Raw Normal View History

---
# handlers file for server
- name: Restart sshd
2021-08-20 12:16:37 +00:00
become: yes
ansible.builtin.service:
name: ssh
state: restarted
- name: Enable caddy
2021-08-20 12:16:37 +00:00
become: yes
ansible.builtin.service:
name: caddy
enabled: yes
- name: Restart caddy
2021-08-20 12:16:37 +00:00
become: yes
ansible.builtin.service:
name: caddy
state: restarted
- name: Enable and restart caddy
2021-08-20 12:16:37 +00:00
become: yes
ansible.builtin.service:
name: caddy
state: restarted
enabled: yes