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,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'