Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wazuh-single installation bugs in AL2023 #1338

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 32 additions & 11 deletions roles/wazuh/ansible-wazuh-manager/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,38 @@
---

- name: "Install dependencies"
package:
name:
- unzip
- openssl
- tar
- curl
state: present
register: package_status
until: "package_status is not failed"
retries: 10
delay: 10
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" or (ansible_distribution == "Amazon" and ansible_distribution_version != "2023")
Enaraque marked this conversation as resolved.
Show resolved Hide resolved
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

- include_vars: ../../vars/repo_vars.yml

Expand Down
7 changes: 5 additions & 2 deletions roles/wazuh/wazuh-indexer/tasks/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@



- name: Amazon Linux | Install Amazon extras
- name: Amazon Linux | Configure system settings
block:
- name: Install Amazon extras
- name: Install Amazon extras in Amazon Linux 2
yum:
name: amazon-linux-extras
state: present
when:
- ansible_distribution == 'Amazon'
- ansible_distribution_major_version == '2'

- name: Configure vm.max_map_count
lineinfile:
Expand Down
Loading