Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/deploy/ansible/roles/elasticsearch/tasks/main.yml
2017-05-17 19:05:58 -04:00

24 lignes
604 o
YAML

- 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