Created
September 26, 2016 14:38
-
-
Save juliedavila/db8038365a6c948e48406976396faa23 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - 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