From 20c2abceeafc6c79813a7610cf3214fe2a54d978 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Acu=C3=B1a?= Date: Thu, 12 May 2022 14:37:57 -0300 Subject: [PATCH 1/2] Dashboard dependencies added --- roles/wazuh/wazuh-dashboard/tasks/Debian.yml | 7 +++++++ roles/wazuh/wazuh-dashboard/tasks/RedHat.yml | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/roles/wazuh/wazuh-dashboard/tasks/Debian.yml b/roles/wazuh/wazuh-dashboard/tasks/Debian.yml index 7525a10c..e80b605f 100644 --- a/roles/wazuh/wazuh-dashboard/tasks/Debian.yml +++ b/roles/wazuh/wazuh-dashboard/tasks/Debian.yml @@ -13,6 +13,13 @@ state: present update_cache: yes + - name: Install Wazuh dashboard dependencies + apt: + name: [ + 'libnss3-dev', 'fonts-liberation', 'libfontconfig1' + ] + state: present + - name: Install Wazuh dashboard apt: name: "wazuh-dashboard={{ dashboard_version }}-*" diff --git a/roles/wazuh/wazuh-dashboard/tasks/RedHat.yml b/roles/wazuh/wazuh-dashboard/tasks/RedHat.yml index 39900d43..ac1cae5b 100644 --- a/roles/wazuh/wazuh-dashboard/tasks/RedHat.yml +++ b/roles/wazuh/wazuh-dashboard/tasks/RedHat.yml @@ -10,6 +10,14 @@ gpgkey: "{{ wazuh_repo.gpg }}" gpgcheck: true + - name: Install Dashboard dependencies + yum: + name: [ + 'libnss3.so', 'xorg-x11-fonts-100dpi', 'xorg-x11-fonts-75dpi', 'xorg-x11-utils', 'xorg-x11-fonts-cyrillic', 'xorg-x11-fonts-Type1', 'xorg-x11-fonts-misc', 'fontconfig', 'freetype' + ] + state: present + ignore_errors: yes + - name: Install Wazuh dashboard package: name: "wazuh-dashboard-{{ dashboard_version }}" From 7a7203f9d3e1bd8c30b9954141d19d5de68b3370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Acu=C3=B1a?= Date: Thu, 12 May 2022 16:07:40 -0300 Subject: [PATCH 2/2] Task name changed --- roles/wazuh/wazuh-dashboard/tasks/RedHat.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/wazuh/wazuh-dashboard/tasks/RedHat.yml b/roles/wazuh/wazuh-dashboard/tasks/RedHat.yml index ac1cae5b..7ba36704 100644 --- a/roles/wazuh/wazuh-dashboard/tasks/RedHat.yml +++ b/roles/wazuh/wazuh-dashboard/tasks/RedHat.yml @@ -10,7 +10,7 @@ gpgkey: "{{ wazuh_repo.gpg }}" gpgcheck: true - - name: Install Dashboard dependencies + - name: Install Wazuh dashboard dependencies yum: name: [ 'libnss3.so', 'xorg-x11-fonts-100dpi', 'xorg-x11-fonts-75dpi', 'xorg-x11-utils', 'xorg-x11-fonts-cyrillic', 'xorg-x11-fonts-Type1', 'xorg-x11-fonts-misc', 'fontconfig', 'freetype'