agaric-coop/box/provisioning/roles/geerlingguy.elasticsearch/tasks/setup-RedHat.yml

15 lines
337 B
YAML
Raw Permalink Normal View History

---
- name: Add Elasticsearch GPG key.
rpm_key:
key: https://packages.elastic.co/GPG-KEY-elasticsearch
state: present
- name: Add Elasticsearch repository.
copy:
src: elasticsearch.repo
dest: /etc/yum.repos.d/elasticsearch.repo
mode: 0644
- name: Install Elasticsearch.
yum: pkg=elasticsearch state=installed