ansible-role-server/handlers/main.yml

41 lines
603 B
YAML
Raw Normal View History

---
# 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
become: yes
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