From 5738c029b9eb3f474eeed103b9a8b321d1c3336c Mon Sep 17 00:00:00 2001 From: VHS Date: Thu, 5 Oct 2023 14:59:38 +0200 Subject: [PATCH] Fixed conditional that skip installation of depencies --- roles/wazuh/wazuh-indexer/tasks/Debian.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/roles/wazuh/wazuh-indexer/tasks/Debian.yml b/roles/wazuh/wazuh-indexer/tasks/Debian.yml index 2c2b370b9..6c9e68c0a 100644 --- a/roles/wazuh/wazuh-indexer/tasks/Debian.yml +++ b/roles/wazuh/wazuh-indexer/tasks/Debian.yml @@ -1,19 +1,19 @@ - --- - - name: Update cache apt: update_cache: yes -- name: Debian 9 (Stretch) - when: (ansible_facts['distribution'] == "Debian" and ansible_facts['distribution_major_version'] == "9") +- name: Install Debian/Ubuntu pacakges dependencies block: - - name: Install Wazuh indexer dependencies apt: - name: [ - 'unzip', 'wget', 'curl', 'apt-transport-https', software-properties-common - ] + name: + - unzip + - wget + - curl + - apt-transport-https + - software-properties-common + - gnupg state: present - name: Add Wazuh indexer repository @@ -27,7 +27,7 @@ apt_repository: repo: "{{ wazuh_repo.apt }}" state: present - filename: 'wazuh-indexer' + filename: "wazuh-indexer" update_cache: yes - name: Install Wazuh indexer @@ -35,4 +35,4 @@ name: wazuh-indexer={{ indexer_version }}-1 state: present register: install - tags: install \ No newline at end of file + tags: install