mirror of
https://github.com/aljazceru/ansible-elasticsearch.git
synced 2025-12-17 09:04:20 +01:00
Change versionlock command to first remove the lock and then add a new one based on the es_version variable
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
- name: RedHat - install yum-version-lock
|
||||
yum: name=yum-plugin-versionlock state=present update_cache=yes
|
||||
- name: RedHat - lock elasticsearch version
|
||||
command: yum versionlock add elasticsearch
|
||||
shell: yum versionlock delete 0:elasticsearch* ; yum versionlock add elasticsearch{% if es_version is defined and es_version != "" %}-{{ es_version }}{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user