Done roles KESL and delete; tuned hosts.yaml; tuned group_vars

This commit is contained in:
2024-02-17 05:00:01 +03:00
parent cd242ebeed
commit 3d0338f48c
18 changed files with 165 additions and 116 deletions

View File

@@ -0,0 +1,41 @@
- name: Debian delete pkgs
block:
- name: "Remove previous agent installations"
apt:
name: klnagent64
state: absent
- name: "Remove previous kesl installations"
apt:
name: kesl
state: absent
when: ansible_facts['os_family'] == 'Debian'
- name: RHEL delete pkgs
block:
- name: "Remove previous agent installations"
dnf:
name: klnagent64
state: absent
- name: "Remove previous kesl installations"
dnf:
name: kesl
state: absent
when: ansible_facts['os_family'] == 'RED' or ansible_facts['os_family'] == 'RedHat'
- name: "Deleting previous configs from agent"
file:
path: "/opt/kaspersky/klnagent64"
state: absent
- file:
path: "/var/opt/kasperksy/klnagent64"
state: absent
- name: "Deleting previous configs from kesl"
file:
path: "/opt/kaspersky/kesl"
state: absent
- file:
path: "/var/opt/kaspersky/kesl"
state: absent