ansible-playbook-kibana/tasks/elasticsearch-setup.yml
2013-07-06 20:21:12 -07:00

17 lines
626 B
YAML

---
- name: ensure apt cache is up to date
apt: update_cache=yes
- name: ensure python-software-properties is installed
apt: pkg=python-software-properties
- name: ensure app apt dependencies are installed
apt: pkg=$item
with_items:
- openjdk-7-jre
- name: ensure we have the elasticsearch .deb
get_url: url=https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-${es_version}.deb dest=/tmp/elasticsearch-${es_version}.deb mode=0644
- name: ensure elasticsearch is installed
shell: dpkg -i /tmp/elasticsearch-${es_version}.deb creates=/etc/elasticsearch
notify: restart elasticsearch