Merge pull request #1351 from wazuh/merge-4.9.0-into-master

Merge 4.9.0 into master
This commit is contained in:
David Correa Rodríguez 2024-07-18 15:02:52 +02:00 committed by GitHub
commit 2c5f6c02bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 37 additions and 13 deletions

View File

@ -1,17 +1,38 @@
--- ---
- name: "Install dependencies" - name: "Install dependencies"
package: block:
name: - name: "Install common dependencies"
- unzip package:
- openssl name:
- tar - unzip
- curl - openssl
state: present - tar
register: package_status state: present
until: "package_status is not failed" register: package_status
retries: 10 until: "package_status is not failed"
delay: 10 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
- include_vars: ../../vars/repo_vars.yml - include_vars: ../../vars/repo_vars.yml

View File

@ -12,12 +12,15 @@
- name: Amazon Linux | Install Amazon extras - name: Amazon Linux | Configure system settings
block: block:
- name: Install Amazon extras - name: Install Amazon extras in Amazon Linux 2
yum: yum:
name: amazon-linux-extras name: amazon-linux-extras
state: present state: present
when:
- ansible_distribution == 'Amazon'
- ansible_distribution_major_version == '2'
- name: Configure vm.max_map_count - name: Configure vm.max_map_count
lineinfile: lineinfile: