Added distro vars. Changed dnf to yum modules.

This commit is contained in:
2024-02-20 14:41:34 +03:00
parent b8dad01b8a
commit 2b8ce5172a
2 changed files with 10 additions and 3 deletions

View File

@@ -1,3 +1,10 @@
### Distro vars
klnagent_distro_local:
kesl_distro_local:
klnagent_distro_remote:
kesl_distro_remote:
kesl_version: "11.4"
### KLNAGENT vars as defined at https://support.kaspersky.com/KSC/14.2/ru-RU/199693.htm
KLNAGENT_SERVER: "" #* Input KSC to connect
KLNAGENT_AUTOINSTALL: "1" #*

View File

@@ -1,6 +1,6 @@
- name: Debian delete pkgs
block:
- name: "Remove previous agent installations"
- name: "Remove previous klnagent installations"
apt:
name: klnagent64
state: absent
@@ -14,12 +14,12 @@
- name: RHEL delete pkgs
block:
- name: "Remove previous agent installations"
dnf:
yum:
name: klnagent64
state: absent
- name: "Remove previous kesl installations"
dnf:
yum:
name: kesl
state: absent
when: ansible_facts['os_family'] == 'RED' or ansible_facts['os_family'] == 'RedHat'