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 vars as defined at https://support.kaspersky.com/KSC/14.2/ru-RU/199693.htm
KLNAGENT_SERVER: "" #* Input KSC to connect KLNAGENT_SERVER: "" #* Input KSC to connect
KLNAGENT_AUTOINSTALL: "1" #* KLNAGENT_AUTOINSTALL: "1" #*

View File

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