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

Add version lock to the correct package name #476

Merged
merged 1 commit into from
Jul 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
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
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 %}