2019-10-06 20:55:56 +00:00
|
|
|
---
|
|
|
|
# handlers file for server
|
|
|
|
|
|
|
|
- name: Restart sshd
|
2021-08-20 12:16:37 +00:00
|
|
|
become: yes
|
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
|
2021-08-20 12:16:37 +00:00
|
|
|
become: yes
|
2021-08-28 14:50:37 +00:00
|
|
|
ansible.builtin.service:
|
2019-10-06 20:55:56 +00:00
|
|
|
name: caddy
|
|
|
|
enabled: yes
|
|
|
|
|
|
|
|
- name: Restart caddy
|
2021-08-20 12:16:37 +00:00
|
|
|
become: yes
|
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
|
2021-08-20 12:16:37 +00:00
|
|
|
become: yes
|
2021-08-28 14:50:37 +00:00
|
|
|
ansible.builtin.service:
|
2019-10-06 20:55:56 +00:00
|
|
|
name: caddy
|
|
|
|
state: restarted
|
|
|
|
enabled: yes
|