diff --git a/roles/wazuh/ansible-wazuh-manager/tasks/main.yml b/roles/wazuh/ansible-wazuh-manager/tasks/main.yml index 1614ed84c..b2b852239 100644 --- a/roles/wazuh/ansible-wazuh-manager/tasks/main.yml +++ b/roles/wazuh/ansible-wazuh-manager/tasks/main.yml @@ -1,38 +1,17 @@ --- - name: "Install dependencies" - block: - - name: "Install common dependencies" - package: - name: - - unzip - - openssl - - tar - state: present - register: package_status - until: "package_status is not failed" - retries: 10 - delay: 10 - - - name: "Install curl" - package: - name: curl - state: present - when: ansible_distribution != "Amazon" and ansible_distribution_version != "2023" - register: package_status - until: "package_status is not failed" - retries: 10 - delay: 10 - - - name: "Install curl minimal in AL2023" - package: - name: curl-minimal - state: present - when: ansible_distribution == "Amazon" and ansible_distribution_version == "2023" - register: package_status - until: "package_status is not failed" - retries: 10 - delay: 10 + package: + name: + - unzip + - openssl + - tar + - curl + state: present + register: package_status + until: "package_status is not failed" + retries: 10 + delay: 10 - include_vars: ../../vars/repo_vars.yml diff --git a/roles/wazuh/wazuh-indexer/tasks/RedHat.yml b/roles/wazuh/wazuh-indexer/tasks/RedHat.yml index 591752137..d1d0a0608 100644 --- a/roles/wazuh/wazuh-indexer/tasks/RedHat.yml +++ b/roles/wazuh/wazuh-indexer/tasks/RedHat.yml @@ -12,15 +12,12 @@ - - name: Amazon Linux | Configure system settings + - name: Amazon Linux | Install Amazon extras block: - - name: Install Amazon extras in Amazon Linux 2 + - name: Install Amazon extras yum: name: amazon-linux-extras state: present - when: - - ansible_distribution == 'Amazon' - - ansible_distribution_major_version == '2' - name: Configure vm.max_map_count lineinfile: