Make rootcheck and syscheck optional.

This commit is contained in:
Bob Vincent 2018-08-21 12:58:29 -04:00
parent 14e2edb363
commit fabd7cf0f3

View File

@ -39,6 +39,7 @@
<disabled>no</disabled> <disabled>no</disabled>
</active-response> </active-response>
{% if wazuh_agent_config.rootcheck is defined %}
<rootcheck> <rootcheck>
<disabled>no</disabled> <disabled>no</disabled>
<check_unixaudit>yes</check_unixaudit> <check_unixaudit>yes</check_unixaudit>
@ -71,7 +72,9 @@
<skip_nfs>yes</skip_nfs> <skip_nfs>yes</skip_nfs>
</rootcheck> </rootcheck>
{% endif %}
{% if wazuh_agent_config.syscheck is defined %}
<syscheck> <syscheck>
<disabled>no</disabled> <disabled>no</disabled>
{% if ansible_os_family == "Windows" %} {% if ansible_os_family == "Windows" %}
@ -117,6 +120,7 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</syscheck> </syscheck>
{% endif %}
{% if ansible_system == "Linux" and wazuh_agent_config.openscap.disable == 'no' %} {% if ansible_system == "Linux" and wazuh_agent_config.openscap.disable == 'no' %}
<wodle name="open-scap"> <wodle name="open-scap">