ansible-roles/elasticsearch/tasks/elasticsearch.yml

39 lines
719 B
YAML

---
- name: APT https transport is enabled
apt:
name: apt-transport-https
state: installed
tags:
- system
- packages
- name: Elastic GPG key is installed
apt_key:
url: https://artifacts.elastic.co/GPG-KEY-elasticsearch
state: present
tags:
- system
- packages
- name: Elastic sources list is available
apt_repository:
repo: "deb https://artifacts.elastic.co/packages/5.x/apt stable main"
state: present
tags:
- system
- packages
- name: Elasticsearch is installed
apt:
name: elasticsearch
update_cache: yes
state: installed
tags:
- packages
- name: Elasticsearch service is enabled
service:
name: elasticsearch
enabled: yes