Changed default variable names so entire hash is not overwritten. Enabled plugin install

This commit is contained in:
Robin Clarke 2015-05-13 13:33:43 +02:00
parent 3aecd58b59
commit 3da43c91d4
7 changed files with 31 additions and 16 deletions

View file

@ -1,8 +1,8 @@
---
- name: RedHat - add Elasticsearch repo
template: src=elasticsearch.repo dest=/etc/yum.repos.d/elasticsearch-{{ elasticsearch.major_version }}.repo
template: src=elasticsearch.repo dest=/etc/yum.repos.d/elasticsearch-{{ es_major_version }}.repo
- name: RedHat - Install Elasticsearch
yum: name=elasticsearch-{{ elasticsearch.version }} state=present update_cache=yes
yum: name=elasticsearch-{{ es_version }} state=present update_cache=yes
register: elasticsearch_install