Adapt Manager installation from custom packages to support RHEL/Centos 8
This commit is contained in:
parent
ac8a0c8308
commit
03e35ada29
@ -17,18 +17,46 @@
|
|||||||
- ansible_os_family|lower == "debian"
|
- ansible_os_family|lower == "debian"
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Install Wazuh Manager from .rpm packages
|
- name: Install Wazuh Manager from .rpm packages | yum
|
||||||
yum:
|
yum:
|
||||||
name: "{{ wazuh_custom_packages_installation_manager_rpm_url }}"
|
name: "{{ wazuh_custom_packages_installation_manager_rpm_url }}"
|
||||||
state: present
|
state: present
|
||||||
when:
|
when:
|
||||||
- wazuh_custom_packages_installation_manager_enabled
|
- wazuh_custom_packages_installation_manager_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 API from .rpm packages
|
- name: Install Wazuh Manager from .rpm packages | dnf
|
||||||
|
dnf:
|
||||||
|
name: "{{ wazuh_custom_packages_installation_manager_rpm_url }}"
|
||||||
|
state: present
|
||||||
|
when:
|
||||||
|
- wazuh_custom_packages_installation_manager_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")
|
||||||
|
|
||||||
|
|
||||||
|
- name: Install Wazuh API from .rpm packages | yum
|
||||||
yum:
|
yum:
|
||||||
name: "{{ wazuh_custom_packages_installation_api_rpm_url }}"
|
name: "{{ wazuh_custom_packages_installation_api_rpm_url }}"
|
||||||
state: present
|
state: present
|
||||||
when:
|
when:
|
||||||
- wazuh_custom_packages_installation_api_enabled
|
- wazuh_custom_packages_installation_api_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 Manager from .rpm packages | dnf
|
||||||
|
dnf:
|
||||||
|
name: "{{ wazuh_custom_packages_installation_api_rpm_url }}"
|
||||||
|
state: present
|
||||||
|
when:
|
||||||
|
- wazuh_custom_packages_installation_api_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")
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- ansible_os_family|lower == "redhat"
|
- ansible_os_family|lower == "redhat"
|
||||||
Loading…
Reference in New Issue
Block a user