Fix for Wazuh-API User skipped on debian

This should fix that Wazuh-API User task is being skipped on debian > 6
This commit is contained in:
sgargel 2019-10-24 18:24:32 +02:00 committed by GitHub
parent d384c7397f
commit 62ac174880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -322,8 +322,7 @@
notify: restart wazuh-api notify: restart wazuh-api
when: when:
- wazuh_api_user is defined - wazuh_api_user is defined
- not (ansible_distribution == 'CentOS' or ansible_distribution == 'RedHat' or ansible_distribution == 'Amazon') - not (ansible_facts['os_family']|lower == 'redhat' and ansible_distribution_major_version|int < 6)
- ansible_distribution_major_version|int < 6
tags: tags:
- config - config
@ -379,8 +378,7 @@
environment: environment:
LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:/var/ossec/framework/lib" LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:/var/ossec/framework/lib"
when: when:
- not (ansible_distribution == 'CentOS' or ansible_distribution == 'RedHat' or ansible_distribution == 'Amazon') - not (ansible_facts['os_family']|lower == 'redhat' and ansible_distribution_major_version|int < 6)
- ansible_distribution_major_version|int < 6
- name: Ensure Wazuh Manager is started and enabled (EL5) - name: Ensure Wazuh Manager is started and enabled (EL5)
service: service: