Files
kcare/roles/kernelcare/tasks/uninstall_CentOS.yml
Gary Kwok ef6e10728d v1
2024-01-29 17:53:04 +08:00

20 lines
476 B
YAML

---
# 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"