ansible-role-server/handlers/main.yml

40 lines
589 B
YAML

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