2019-10-06 20:55:56 +00:00
|
|
|
---
|
|
|
|
# handlers file for server
|
|
|
|
|
|
|
|
- name: Restart sshd
|
2023-04-28 21:25:21 +00:00
|
|
|
become: true
|
2021-08-28 14:50:37 +00:00
|
|
|
ansible.builtin.service:
|
2019-10-06 20:55:56 +00:00
|
|
|
name: ssh
|
|
|
|
state: restarted
|
|
|
|
|
|
|
|
- name: Enable caddy
|
2023-04-28 21:25:21 +00:00
|
|
|
become: true
|
2021-08-28 14:50:37 +00:00
|
|
|
ansible.builtin.service:
|
2019-10-06 20:55:56 +00:00
|
|
|
name: caddy
|
2023-04-28 21:25:21 +00:00
|
|
|
enabled: true
|
2019-10-06 20:55:56 +00:00
|
|
|
|
|
|
|
- name: Restart caddy
|
2023-04-28 21:25:21 +00:00
|
|
|
become: true
|
2021-08-28 14:50:37 +00:00
|
|
|
ansible.builtin.service:
|
2019-10-06 20:55:56 +00:00
|
|
|
name: caddy
|
|
|
|
state: restarted
|
|
|
|
|
|
|
|
- name: Enable and restart caddy
|
2023-04-28 21:25:21 +00:00
|
|
|
become: true
|
2021-08-28 14:50:37 +00:00
|
|
|
ansible.builtin.service:
|
2019-10-06 20:55:56 +00:00
|
|
|
name: caddy
|
|
|
|
state: restarted
|
2023-04-28 21:25:21 +00:00
|
|
|
enabled: true
|