Conditions for CentOS 8

This commit is contained in:
Gonzalo Acuña 2022-04-26 17:08:47 -03:00
parent 31d3cd64d1
commit 60b891084e
No known key found for this signature in database
GPG Key ID: 646BA79A313A2270
2 changed files with 4 additions and 2 deletions

View File

@ -35,7 +35,8 @@
until: wazuh_manager_openscp_packages_installed is succeeded until: wazuh_manager_openscp_packages_installed is succeeded
tags: tags:
- init - init
when: not (ansible_distribution == "Amazon" and ansible_distribution_major_version == "NA") when: not (ansible_distribution == "Amazon" and ansible_distribution_major_version == "NA") and
not (ansible_distribution == "CentOS" and ansible_distribution_major_version == "8")
- name: CentOS 6 | Install Software Collections (SCL) Repository - name: CentOS 6 | Install Software Collections (SCL) Repository
package: name=centos-release-scl state=present package: name=centos-release-scl state=present

View File

@ -36,7 +36,8 @@
name: expect name: expect
state: "{{ wazuh_manager_package_state }}" state: "{{ wazuh_manager_package_state }}"
when: when:
- not (ansible_os_family|lower == "redhat" and ansible_distribution_major_version|int < 6) - not (ansible_os_family|lower == "redhat" and ansible_distribution_major_version|int < 6) and
not (ansible_distribution|lower == "centos" and ansible_distribution_major_version|int == 8)
tags: init tags: init
- name: Generate SSL files for authd - name: Generate SSL files for authd