20 lines
476 B
YAML
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" |