Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #476 from elastic/lock_me_up
Browse files Browse the repository at this point in the history
Add version lock to the correct package name
  • Loading branch information
itsmed authored Jul 27, 2018
2 parents 4ec1f3b + c2a68d0 commit 3e12364
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tasks/elasticsearch-Debian-version-lock.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- name: Debian - hold elasticsearch version
become: yes
command: apt-mark hold elasticsearch
command: "apt-mark hold {{ es_package_name }}"
register: hold_elasticsearch_result
changed_when: "hold_elasticsearch_result.stdout != 'elasticsearch was already set on hold.'"
changed_when: "hold_elasticsearch_result.stdout != '{{ es_package_name }} was already set on hold.'"
2 changes: 1 addition & 1 deletion tasks/elasticsearch-RedHat-version-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

0 comments on commit 3e12364

Please sign in to comment.