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

Increase yum lock timeout (workaround) #1879

Merged
merged 19 commits into from
Jan 27, 2021
Merged
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
Prev Previous commit
Next Next commit
elasticsearch: add yum lock_timeout (fix)
sk4zuzu committed Jan 27, 2021
commit 7aafa3714a91b023c9ff84a4269d49ac3ddd11e7
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
---
# splitted to separate tasks to make it work on Debian/Ubuntu:
# https://github.com/elastic/elasticsearch/issues/33607#issue-359124678

- name: Install Elasticsearch prerequisites
apt:
name:
- openjdk-8-jre-headless
update_cache: true
state: present

- name: Install Elasticsearch package
apt:
name:
- elasticsearch-oss={{ specification.elasticsearch_version }}
state: present
register: install_elasticsearch_package
register: install_elasticsearch_package
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
- name: Install Elasticsearch package
yum:
name:
- java-1.8.0-openjdk-headless
- elasticsearch-oss-{{ specification.elasticsearch_version }}
update_cache: yes
update_cache: true
state: present
exclude: elasticsearch-oss-7* # v7 is installed by opendistro_for_elasticsearch role
register: install_elasticsearch_package
Original file line number Diff line number Diff line change
@@ -15,5 +15,8 @@
- { limit_type: 'soft', limit_item: 'memlock', value: unlimited }
- { limit_type: 'hard', limit_item: 'memlock', value: unlimited }

- name: Install Elasticsearch ({{ ansible_os_family }})
include_tasks: "{{ ansible_os_family }}.yml"
- name: Execute OS-specific tasks (elasticsearch)
block:
- include_tasks: "{{ ansible_os_family }}.yml"
module_defaults:
yum: { lock_timeout: 300 }