This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
solutions-tsg-scripts/tasks/stop_telegraf_collect.yml
fumingwei c80ec96e6e 1、commit the file privilege that is changed
2、add function that is to reboot and  stop device manager in mxn
2021-03-08 10:54:59 +08:00

17 lines
468 B
YAML

- hosts:
- adc_mcn0
- adc_mcn1
- adc_mcn2
- adc_mcn3
remote_user: root
tasks:
- name: 'mcn* stop telegraf_collect service'
systemd:
name: telegraf_collect
state: stopped
enabled: no
ignore_errors: yes
- name: 'telegraf_collect config file and service file'
shell: rm /etc/telegraf/telegraf_collect.conf; rm /usr/lib/systemd/system/telegraf_collect.service; systemctl daemon-reload