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