Adapt Agent installation from custom packages to support RHEL/Centos 8
This commit is contained in:
parent
a985eb0db0
commit
ac8a0c8308
@ -7,10 +7,24 @@
|
|||||||
- ansible_os_family|lower == "debian"
|
- ansible_os_family|lower == "debian"
|
||||||
- wazuh_custom_packages_installation_agent_enabled
|
- wazuh_custom_packages_installation_agent_enabled
|
||||||
|
|
||||||
- name: Install Wazuh Agent from .rpm packages
|
- name: Install Wazuh Agent from .rpm packages | yum
|
||||||
yum:
|
yum:
|
||||||
name: "{{ wazuh_custom_packages_installation_agent_rpm_url }}"
|
name: "{{ wazuh_custom_packages_installation_agent_rpm_url }}"
|
||||||
state: present
|
state: present
|
||||||
when:
|
when:
|
||||||
- ansible_os_family|lower == "redhat"
|
- ansible_os_family|lower == "redhat"
|
||||||
- wazuh_custom_packages_installation_agent_enabled
|
- wazuh_custom_packages_installation_agent_enabled
|
||||||
|
- not (ansible_distribution|lower == "centos" and ansible_distribution_major_version >= "8")
|
||||||
|
- not (ansible_distribution|lower == "redhat" and ansible_distribution_major_version >= "8")
|
||||||
|
- not (ansible_distribution|lower == "amazon" and ansible_distribution_major_version >= "2")
|
||||||
|
|
||||||
|
- name: Install Wazuh Agent from .rpm packages | dnf
|
||||||
|
dnf:
|
||||||
|
name: "{{ wazuh_custom_packages_installation_agent_rpm_url }}"
|
||||||
|
state: present
|
||||||
|
when:
|
||||||
|
- ansible_os_family|lower == "redhat"
|
||||||
|
- wazuh_custom_packages_installation_agent_enabled
|
||||||
|
- (ansible_distribution|lower == "centos" and ansible_distribution_major_version >= "8") or
|
||||||
|
(ansible_distribution|lower == "redhat" and ansible_distribution_major_version >= "8") or
|
||||||
|
(ansible_distribution|lower == "amazon" and ansible_distribution_major_version >= "2")
|
||||||
Loading…
Reference in New Issue
Block a user