Skip to content

Instantly share code, notes, and snippets.

@juliedavila
Created September 26, 2016 14:38
Show Gist options
  • Select an option

  • Save juliedavila/db8038365a6c948e48406976396faa23 to your computer and use it in GitHub Desktop.

Select an option

Save juliedavila/db8038365a6c948e48406976396faa23 to your computer and use it in GitHub Desktop.
---
- name: es staging area
file:
path: /opt/es
state: directory
mode: '0755'
become: true
- name: download es
get_url:
dest: /opt/es
url: "https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.3.1/elasticsearch-2.3.1.deb"
become: true
- name: install es
apt:
deb: /opt/es/elasticsearch-2.3.1.deb
become: true
- name: start es
systemd:
state: started
name: elasticsearch
daemon_reload: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment