From 36183579aa48bd9207237ac69d666f0f222cfc1d Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 21 Dec 2018 07:36:22 +0100 Subject: elasticsearch --- ansible/experiments/elasticsearch-server/tasks/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ansible/experiments/elasticsearch-server/tasks/main.yml (limited to 'ansible/experiments/elasticsearch-server') 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 -- cgit v1.2.3