Merge pull request #1511 from wazuh/enhancement/2060-add-yum-lock-to-ansible-tasks

Add Yum lock timeout to Ansible task
This commit is contained in:
Gonzalo Acuña 2025-01-20 09:51:58 -03:00 committed by GitHub
commit 43793d8202
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 13 additions and 4 deletions

View File

@ -9,7 +9,7 @@ All notable changes to this project will be documented in this file.
### Changed
- None
- Add Yum lock timeout to Ansible task ([#1511](https://github.com/wazuh/wazuh-ansible/pull/1511))
### Fixed

View File

@ -17,6 +17,7 @@
yum:
name: "filebeat-{{ filebeat_version }}"
state: present
lock_timeout: 200
register: install
tags:
- install
@ -31,7 +32,7 @@
tags:
- install
- init
until: "install is not failed"
until: "install is not failed"
retries: 10
delay: 10
when: ansible_os_family == 'Debian'

View File

@ -11,6 +11,7 @@
yum:
name: "{{ wazuh_custom_packages_installation_agent_rpm_url }}"
state: present
lock_timeout: 200
when:
- ansible_os_family|lower == "redhat"
- wazuh_custom_packages_installation_agent_enabled

View File

@ -62,7 +62,10 @@
- wazuh_manager_config.cluster.disable != 'yes'
- name: RedHat/CentOS/Fedora | Install OpenJDK 1.8
yum: name=java-1.8.0-openjdk state=present
yum:
name: java-1.8.0-openjdk
state: present
lock_timeout: 200
when:
- wazuh_manager_config.cis_cat.disable == 'no'
- wazuh_manager_config.cis_cat.install_java == 'yes'

View File

@ -14,6 +14,7 @@
yum:
name: "{{ wazuh_custom_packages_installation_manager_rpm_url }}"
state: present
lock_timeout: 200
when:
- wazuh_custom_packages_installation_manager_enabled
- not (ansible_distribution|lower == "centos" and ansible_distribution_major_version >= "8")

View File

@ -18,7 +18,8 @@
yum:
name: amazon-linux-extras
state: present
when:
lock_timeout: 200
when:
- ansible_distribution == 'Amazon'
- ansible_distribution_major_version == '2'
@ -40,6 +41,8 @@
- name: RedHat/CentOS/Fedora | Install Indexer dependencies
yum:
name: "{{ packages }}"
state: present
lock_timeout: 200
vars:
packages:
- wget