Add version lock to the correct package name

This commit is contained in:
Michael Russell 2018-07-26 15:45:40 +02:00
parent 4ec1f3b650
commit c2a68d06c8
No known key found for this signature in database
GPG key ID: A90C1696496085FE
2 changed files with 3 additions and 3 deletions

View file

@ -4,4 +4,4 @@
yum: name=yum-plugin-versionlock state=present update_cache=yes
- name: RedHat - lock elasticsearch version
become: yes
shell: yum versionlock delete 0:elasticsearch* ; yum versionlock add elasticsearch{% if es_version is defined and es_version != "" %}-{{ es_version }}{% endif %}
shell: yum versionlock delete 0:elasticsearch* ; yum versionlock add {{ es_package_name }}{% if es_version is defined and es_version != "" %}-{{ es_version }}{% endif %}