Start add elasticsearch
Cette révision appartient à :
Parent
f40de4c8dc
révision
a6d34ef582
1 fichiers modifiés avec 24 ajouts et 0 suppressions
24
deploy/ansible/roles/elasticsearch/tasks/main.yml
Fichier normal
24
deploy/ansible/roles/elasticsearch/tasks/main.yml
Fichier normal
|
@ -0,0 +1,24 @@
|
|||
- name: Add elasticsearch key
|
||||
rpm_key:
|
||||
state: present
|
||||
key: https://artifacts.elastic.co/GPG-KEY-elasticsearch
|
||||
become: true
|
||||
|
||||
- name: Add elasticsearch repo
|
||||
yum_repository:
|
||||
name: elasticsearch-5.x
|
||||
baseurl: https://artifacts.elastic.co/packages/5.x/yum
|
||||
gpgcheck: 1
|
||||
gpgkey: https://artifacts.elastic.co/GPG-KEY-elasticsearch
|
||||
enabled: 1
|
||||
description: Elastic search repository for 5.x packages
|
||||
become: true
|
||||
|
||||
- name: Install java and elasticsearch
|
||||
yum:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
become: true
|
||||
with_items:
|
||||
- java-1.8.0-openjdk
|
||||
- elasticsearch
|
Référencer dans un nouveau ticket