mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
26 lines
522 B
YAML
26 lines
522 B
YAML
---
|
|
# handlers file for ansible-telegraf
|
|
|
|
- name: "Restart Telegraf"
|
|
service:
|
|
name: telegraf
|
|
state: restarted
|
|
enabled: yes
|
|
when: not telegraf_agent_docker
|
|
become: yes
|
|
|
|
- name: "Restart Telegraf container"
|
|
docker_container:
|
|
name: "{{ telegraf_agent_docker_name }}"
|
|
restart: True
|
|
when: telegraf_agent_docker
|
|
|
|
- name: "Restart Windows Telegraf"
|
|
win_service:
|
|
name: Telegraf
|
|
start_mode: auto
|
|
state: restarted
|
|
|
|
- name: "Restart MacOS Telegraf"
|
|
shell: brew services restart telegraf
|