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:
parent
bf31d9aa89
commit
8e99d1bae1
1 changed files with 1 additions and 1 deletions
|
|
@ -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 %}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue