Sanatizing the Manager and API active status verification task

This commit is contained in:
Zenidd 2020-02-11 14:51:10 +01:00
parent 8cc279a053
commit 01fb6b1d36

View File

@ -339,20 +339,6 @@
- wazuh-api
tags:
- config
environment:
LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:/var/ossec/framework/lib"
when:
- not (ansible_facts['os_family']|lower == 'redhat' and ansible_distribution_major_version|int < 6)
- name: Ensure Wazuh Manager is started and enabled (EL5)
service:
name: wazuh-manager
enabled: true
state: started
tags:
- config
when:
- ansible_distribution in ['CentOS', 'RedHat', 'Amazon'] and ansible_distribution_major_version|int < 6
- include_tasks: "RMRedHat.yml"
when: