This commit is contained in:
Gary Kwok
2024-01-29 17:53:04 +08:00
commit ef6e10728d
24 changed files with 409 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
---
# tasks file for kernalcare
- block:
- name: unregister KernelCare agents
ansible.builtin.command: /usr/bin/kcarectl --unregister
ignore_errors: yes
args:
removes: /usr/bin/kcarectl
- name: remove kernelcare package
ansible.builtin.package:
name:
- kernelcare
- libcare
state: absent
- include_tasks: housekeep_log.yml
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"