diff options
| author | fumingwei <[email protected]> | 2020-10-16 16:57:20 +0800 |
|---|---|---|
| committer | fumingwei <[email protected]> | 2020-10-16 16:57:20 +0800 |
| commit | f0725b0e02d7a28ada14fed06a415a2617f053b5 (patch) | |
| tree | e678827222a1161489e8c71afa47364c98a574f3 /uninstall | |
| parent | 451677775daf33558645ebf573b7e4243aeaeb78 (diff) | |
修改 clotho 为 package_dump
Diffstat (limited to 'uninstall')
| -rw-r--r-- | uninstall/roles/packet_dump/tasks/main.yml | 16 | ||||
| -rwxr-xr-x | uninstall/rpm_list.sh | 4 | ||||
| -rw-r--r-- | uninstall/uninstall_tsg.yml | 2 |
3 files changed, 22 insertions, 0 deletions
diff --git a/uninstall/roles/packet_dump/tasks/main.yml b/uninstall/roles/packet_dump/tasks/main.yml new file mode 100644 index 0000000..74de743 --- /dev/null +++ b/uninstall/roles/packet_dump/tasks/main.yml @@ -0,0 +1,16 @@ +#################### +#Uninstall packet_dump +- name: "[uninstall packet_dump] stop packet_dump" + systemd: + name: packet_dump + state: stopped + enabled: no + when: uninstall.packet_dump == 1 + ignore_errors: true + +- name: "[uninstall packet_dump] uninstall packet_dump" + yum: + name: + - "{{ packet_dump }}" + state: absent + when: uninstall.packet_dump == 1 diff --git a/uninstall/rpm_list.sh b/uninstall/rpm_list.sh index 8b6b11b..fec05cb 100755 --- a/uninstall/rpm_list.sh +++ b/uninstall/rpm_list.sh @@ -41,6 +41,7 @@ tfe=`rpm -qa |grep ^tfe-4` tfe_kmod=`rpm -qa |grep ^tfe-kmod` http_healthcheck=`rpm -qa |grep ^http_healthcheck` clotho=`rpm -qa |grep ^clotho` +packet_dump=`rpm -qa |grep ^packet_dump` certstore=`rpm -qa |grep ^certstore` @@ -125,6 +126,9 @@ http_healthcheck: $http_healthcheck #clotho clotho: $clotho +#packet_dump +packet_dump: $packet_dump + ##################### #certstore certstore: $certstore diff --git a/uninstall/uninstall_tsg.yml b/uninstall/uninstall_tsg.yml index b03ed66..0a3d730 100644 --- a/uninstall/uninstall_tsg.yml +++ b/uninstall/uninstall_tsg.yml @@ -17,6 +17,7 @@ - certstore - cert_redis - clotho + - packet_dump - http_healthcheck - framework - telegraf_statistic @@ -45,6 +46,7 @@ - certstore - cert_redis - clotho + - packet_dump - http_healthcheck - framework - telegraf_statistic |
