#jinja2: trim_blocks: False {% for manager in wazuh_managers %}
{{ manager.address }}
{% if manager.port is defined %} {{ manager.port }} {% endif %} {% if manager.protocol is defined %} {{ manager.protocol }} {% endif %}
{% endfor %} {% if wazuh_profile is not none %} {{ wazuh_profile }} {% endif %} {% if wazuh_notify_time is not none and wazuh_time_reconnect is not none %} {{ wazuh_notify_time }} {{ wazuh_time_reconnect }} {% endif %} {{ wazuh_auto_restart }} {{ wazuh_crypto_method }}
{{ wazuh_agent_config.client_buffer.disable }} {{ wazuh_agent_config.client_buffer.queue_size }} {{ wazuh_agent_config.client_buffer.events_per_sec }} {{ wazuh_agent_config.log_format }} {{ wazuh_agent_config.active_response.ar|default('no') }} {% if ansible_os_family == "Windows" %}{{ wazuh_agent_config.active_response.ca_store_win }}{% else %}{{ wazuh_agent_config.active_response.ca_store }}{% endif %} {{ wazuh_agent_config.active_response.ca_verification }} {% if wazuh_agent_config.rootcheck is defined %} no {% if ansible_system == "Linux" %} yes yes yes yes yes yes yes yes {{ wazuh_agent_config.rootcheck.frequency }} /var/ossec/etc/shared/rootkit_files.txt /var/ossec/etc/shared/rootkit_trojans.txt /var/ossec/etc/shared/system_audit_rcl.txt /var/ossec/etc/shared/system_audit_ssh.txt {% if cis_distribution_filename is defined %} /var/ossec/etc/shared/{{ cis_distribution_filename }} {% endif %} yes {% endif %} {% if ansible_os_family == "Windows" %} ./shared/win_audit_rcl.txt ./shared/win_applications_rcl.txt ./shared/win_malware_rcl.txt {% endif %} {% endif %} {% if wazuh_agent_config.syscheck is defined %} no {{ wazuh_agent_config.syscheck.frequency }} {% if ansible_system == "Linux" %} /etc,/usr/bin,/usr/sbin /bin,/sbin,/boot {{ wazuh_agent_config.syscheck.auto_ignore }} {{ wazuh_agent_config.syscheck.scan_on_start }} {% endif %} {% if wazuh_agent_config.syscheck.directories is defined and ansible_os_family == "Linux" %} {% for directory in wazuh_agent_config.syscheck.directories %} {{ directory.dirs }} {% endfor %} {% endif %} {% if wazuh_agent_config.syscheck.win_directories is defined and ansible_os_family == "Windows" %} {% for directory in wazuh_agent_config.syscheck.win_directories %} {{ directory.dirs }} {% endfor %} {% endif %} {% if wazuh_agent_config.syscheck.ignore is defined and ansible_system == "Linux" %} {% for ignore in wazuh_agent_config.syscheck.ignore %} {{ ignore }} {% endfor %} {% endif %} {% if wazuh_agent_config.syscheck.ignore is defined and ansible_system == "Windows" %} {% for ignore in wazuh_agent_config.syscheck.ignore_win %} {{ ignore }} {% endfor %} {% endif %} {% if ansible_system == "Linux" %} {% for no_diff in wazuh_agent_config.syscheck.no_diff %} {{ no_diff }} {% endfor %} {{ wazuh_agent_config.syscheck.skip_nfs }} {% endif %} {{ wazuh_agent_config.syscheck.remove_old_diff }} {% if ansible_system == "Linux"%} {{ wazuh_agent_config.syscheck.restart_audit }} {% endif %} {% if ansible_os_family == "Windows" %} {% for registry_key in wazuh_agent_config.syscheck.windows_registry %} {% if registry_key.arch is defined %} {{ registry_key.key }} {% else %} {{ registry_key.key }} {% endif %} {% endfor %} {% endif %} {% if ansible_os_family == "Windows" %} {% for registry_key in wazuh_agent_config.syscheck.windows_registry_ignore %} {% if registry_key.type is defined %} {{ registry_key.key }} {% else %} {{ registry_key.key }} {% endif %} {% endfor %} {% endif %} {% if ansible_os_family == "Windows" %} {{ wazuh_agent_config.syscheck.win_audit_interval }} {% endif %} {% endif %} {% if ansible_system == "Linux" and wazuh_agent_config.openscap.disable == 'no' %} no {{ wazuh_agent_config.openscap.timeout }} {{ wazuh_agent_config.openscap.interval }} {{ wazuh_agent_config.openscap.scan_on_start }} {% if ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'xenial' %} xccdf_org.ssgproject.content_profile_common {% elif ansible_distribution == 'Debian' %} {% if ansible_distribution_release == 'jessie' %} {% if openscap_version_valid.stdout == "0" %} xccdf_org.ssgproject.content_profile_common {% endif %} {% elif ansible_distribution_release == 'stretch' %} {% endif %} {% elif ansible_distribution == 'CentOS' %} {% if ansible_distribution_major_version == '7' %} {% elif ansible_distribution_major_version == '6' %} {% endif %} xccdf_org.ssgproject.content_profile_pci-dss xccdf_org.ssgproject.content_profile_common {% elif ansible_distribution == 'RedHat' %} {% if ansible_distribution_major_version == '7' %} {% elif ansible_distribution_major_version == '6' %} {% endif %} xccdf_org.ssgproject.content_profile_pci-dss xccdf_org.ssgproject.content_profile_common {% if ansible_distribution_major_version == '7' %} {% elif ansible_distribution_major_version == '6' %} {% endif %} {% elif ansible_distribution == 'Fedora' %} xccdf_org.ssgproject.content_profile_pci-dss xccdf_org.ssgproject.content_profile_common {% endif %} {% endif %} {% if wazuh_agent_config.cis_cat.disable == 'no' %} no {{ wazuh_agent_config.cis_cat.timeout }} {{ wazuh_agent_config.cis_cat.interval }} {{ wazuh_agent_config.cis_cat.scan_on_start }} {% if wazuh_agent_config.cis_cat.install_java == 'yes' and ansible_system == "Linux" %} /usr/bin {% elif ansible_os_family == "Windows" %} {{ wazuh_agent_config.cis_cat.java_path_win }} {% else %} {{ wazuh_agent_config.cis_cat.java_path }} {% endif %} {% if ansible_os_family == "Windows" %}{{ wazuh_agent_config.cis_cat.ciscat_path_win }}{% else %}{{ wazuh_agent_config.cis_cat.ciscat_path }}{% endif %} {% if ansible_system == "Linux" %} {% for benchmark in wazuh_agent_config.cis_cat.content %} {{ benchmark.profile }} {% endfor %} {% endif %} {% endif %} {{ wazuh_agent_config.osquery.disable }} {{ wazuh_agent_config.osquery.run_daemon }} {% if ansible_os_family == "Windows" %} {{ wazuh_agent_config.osquery.bin_path_win }} {% endif %} {% if ansible_os_family == "Windows" %}{{ wazuh_agent_config.osquery.log_path_win }}{% else %}{{ wazuh_agent_config.osquery.log_path }}{% endif %} {% if ansible_os_family == "Windows" %}{{ wazuh_agent_config.osquery.config_path_win }}{% else %}{{ wazuh_agent_config.osquery.config_path }}{% endif %} {{ wazuh_agent_config.osquery.ad_labels }} {{ wazuh_agent_config.syscollector.disable }} {{ wazuh_agent_config.syscollector.interval }} {{ wazuh_agent_config.syscollector.scan_on_start }} {{ wazuh_agent_config.syscollector.hardware }} {{ wazuh_agent_config.syscollector.os }} {{ wazuh_agent_config.syscollector.network }} {{ wazuh_agent_config.syscollector.packages }} {{ wazuh_agent_config.syscollector.ports_no }} {{ wazuh_agent_config.syscollector.processes }} {% if ansible_system == "Linux" and wazuh_agent_config.vuls.disable == 'no' %} no Wazuh-VULS /usr/bin/python /var/ossec/wodles/vuls/vuls.py{% for arg in wazuh_agent_config.vuls.args %} --{{ arg }}{% endfor %} {{ wazuh_agent_config.vuls.interval }} yes {{ wazuh_agent_config.vuls.run_on_start }} {% endif %} {% if ansible_system == "Linux" %} {% for localfile in wazuh_agent_config.localfiles.linux %} {{ localfile.format }} {% if localfile.format == 'command' or localfile.format == 'full_command' %} {{ localfile.command }} {{ localfile.frequency }} {% else %} {{ localfile.location }} {% endif %} {% endfor %} {% endif %} {% if ansible_os_family == "Debian" %} {% for localfile in wazuh_agent_config.localfiles.debian %} {{ localfile.format }} {% if localfile.format == 'command' or localfile.format == 'full_command' %} {{ localfile.command }} {{ localfile.frequency }} {% else %} {{ localfile.location }} {% endif %} {% endfor %} {% endif %} {% if ansible_os_family == "RedHat" %} {% for localfile in wazuh_agent_config.localfiles.centos %} {{ localfile.format }} {% if localfile.format == 'command' or localfile.format == 'full_command' %} {{ localfile.command }} {{ localfile.frequency }} {% else %} {{ localfile.location }} {% endif %} {% endfor %} {% endif %} {% if ansible_os_family == "Windows" %} {% for localfile in wazuh_agent_config.localfiles.windows %} {{ localfile.format }} {% if localfile.format == 'eventchannel' %} {{ localfile.location }} {{ localfile.query}} {% else %} {{ localfile.location }} {% endif %} {% endfor %} {% endif %} {% if wazuh_agent_config.labels.enable == true %} {% for label in wazuh_agent_config.labels.list %} {% endfor %} {% endif %}