aboutsummaryrefslogtreecommitdiff
path: root/ansible/experiments/elasticsearch-server
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-12-21 07:36:22 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2018-12-21 07:36:22 +0100
commit36183579aa48bd9207237ac69d666f0f222cfc1d (patch)
tree00e6b7a4d5fc6a2e9ff2ce0a0df7c571e3b2a3b3 /ansible/experiments/elasticsearch-server
parentd8b72bd2c77a362e16a2c713fe94d704c5802dc5 (diff)
downloadinfra-36183579aa48bd9207237ac69d666f0f222cfc1d.tar.gz
infra-36183579aa48bd9207237ac69d666f0f222cfc1d.tar.bz2
infra-36183579aa48bd9207237ac69d666f0f222cfc1d.tar.xz
infra-36183579aa48bd9207237ac69d666f0f222cfc1d.zip
elasticsearch
Diffstat (limited to 'ansible/experiments/elasticsearch-server')
-rw-r--r--ansible/experiments/elasticsearch-server/tasks/main.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/ansible/experiments/elasticsearch-server/tasks/main.yml b/ansible/experiments/elasticsearch-server/tasks/main.yml
new file mode 100644
index 0000000..0019cb6
--- /dev/null
+++ b/ansible/experiments/elasticsearch-server/tasks/main.yml
@@ -0,0 +1,17 @@
+- become: yes
+ tags:
+ - elasticsearch-server
+ block:
+ - name: Create elasticsearch user
+ user:
+ name: elasticsearch
+ system: yes
+ state: "{{ elasticsearch_server__state }}"
+ shell: /bin/bash
+ - name: Download ES
+ when: elasticsearch_server__state == 'present'
+ get_url:
+ url: "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-{{ elasticsearch_server__version }}.tar.gz"
+ checksum: "{{ elasticsearch_server__checksum }}"
+ dest: /opt/elasticsearch
+ mode: u=rwx,go=rx