2019-10-06 20:55:56 +00:00
|
|
|
---
|
|
|
|
# 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
|
2020-04-30 20:41:26 +00:00
|
|
|
become: yes
|
2019-10-06 20:55:56 +00:00
|
|
|
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
|