diff --git a/ansible-wazuh-manager/defaults/main.yml b/ansible-wazuh-manager/defaults/main.yml
index 66eaf7ec..a5b7f1ee 100644
--- a/ansible-wazuh-manager/defaults/main.yml
+++ b/ansible-wazuh-manager/defaults/main.yml
@@ -33,6 +33,10 @@ wazuh_manager_config:
checks: 'check_all="yes"'
rootcheck:
frequency: 43200
+ openscap:
+ timeout: 1800
+ interval: '1d'
+ scan_on_start: 'yes'
log_level: 1
email_level: 12
localfiles:
diff --git a/ansible-wazuh-manager/tasks/Debian.yml b/ansible-wazuh-manager/tasks/Debian.yml
index f96f07ce..da7d916e 100644
--- a/ansible-wazuh-manager/tasks/Debian.yml
+++ b/ansible-wazuh-manager/tasks/Debian.yml
@@ -26,3 +26,11 @@
- name: Debian/Ubuntu | Set Distribution CIS filename for Debian/Ubuntu
set_fact:
cis_distribution_filename: cis_debian_linux_rcl.txt
+
+- name: Debian/Ubuntu | Install OpenScap
+ package: name={{ item }} state=present
+ with_items:
+ - libopenscap8
+ - xsltproc
+ tags:
+ - init
diff --git a/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 b/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2
index ff41ce36..9669c847 100644
--- a/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2
+++ b/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2
@@ -112,73 +112,50 @@
{% endfor %}
- {% if ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'xenial' %}
no
- 1800
- 1d
- yes
-
+ {{ wazuh_manager_config.openscap.timeout }}
+ {{ wazuh_manager_config.openscap.interval }}
+ {{ wazuh_manager_config.openscap.scan_on_start }}
+ {% if ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'xenial' %}
xccdf_org.ssgproject.content_profile_common
-
- {% elif ansible_distribution == 'Debian' and ansible_distribution_release == 'jessie' %}
-
- no
- 1800
- 1d
- yes
-
+ {% elif ansible_distribution == 'Debian' and ansible_distribution_release == 'jessie' %}
xccdf_org.ssgproject.content_profile_common
-
-
- {% elif ansible_distribution == 'CentOS' %}
-
- no
- 1800
- 1d
- yes
-
- {% if ansible_distribution_major_version == '7' %}
-
- {% elif ansible_distribution_major_version == '6' %}
-
+
+
+ {% 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 %}
- xccdf_org.ssgproject.content_profile_pci-dss
- xccdf_org.ssgproject.content_profile_common
-
- {% elif ansible_distribution == 'RedHat' %}
-
- no
- 1800
- 1d
- yes
-
- {% 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 == 'Fedora' %}
-
- no
- 1800
- 1d
- yes
-
-
- xccdf_org.ssgproject.content_profile_pci-dss
- xccdf_org.ssgproject.content_profile_common
-
-
- {% endif %}
{% if agentless_creeds is defined %}
{% for agentless in agentless_creeds %}