1. add task delete mrzcpd memory.conf and uninstall redis

2. modify stop telegraf_collect to delete telegraf_collect file
This commit is contained in:
fumingwei
2020-11-17 09:55:03 +06:00
parent c08515afbb
commit 6d38d0400e
3 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
- hosts:
- adc_mcn0
- adc_mcn1
- adc_mcn2
- adc_mcn3
remote_user: root
tasks:
- name: 'remove mrzcpd system edit memory config'
shell: rm /etc/systemd/system/mrzcpd.service.d/memory.conf

View File

@@ -10,3 +10,6 @@
name: telegraf_collect
state: stopped
enabled: no
- 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

View File

@@ -0,0 +1,14 @@
- hosts: adc_mcn3
remote_user: root
tasks:
- name: 'redis service stop'
systemd:
name: redis
enabled: no
daemon_reload: yes
state: stopped
- name: remove the redis40u
yum:
name: redis40u
state: absent