From c01182433d6d19eeb4e89813005d3d667563a372 Mon Sep 17 00:00:00 2001 From: fumingwei Date: Mon, 31 May 2021 16:15:41 +0800 Subject: [PATCH] =?UTF-8?q?disable=20telegraf=20service=20=E7=9A=84?= =?UTF-8?q?=E5=BC=80=E6=9C=BA=E8=87=AA=E5=90=AF=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsg-9140-scripts/roles/telegraf_statistic/tasks/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tsg-9140-scripts/roles/telegraf_statistic/tasks/main.yml b/tsg-9140-scripts/roles/telegraf_statistic/tasks/main.yml index 8c8ec0f5..ab12cbd8 100644 --- a/tsg-9140-scripts/roles/telegraf_statistic/tasks/main.yml +++ b/tsg-9140-scripts/roles/telegraf_statistic/tasks/main.yml @@ -22,7 +22,14 @@ mode: 0644 ##################### telegraf ##################### -- name: "Start telegraf" + +- name: "disable telegraf" + systemd: + name: telegraf.service + enabled: no + daemon_reload: yes + +- name: "Start telegraf_statistic" systemd: name: telegraf_statistic.service state: started