aurore-logs/roles/elasticsearch/tasks/main.yml

31 lines
658 B
YAML
Raw Normal View History

2020-09-19 21:39:57 +02:00
---
- name: Install elasticsearch
become: yes
apt:
name: elasticsearch
state: present
- name: Deploy elasticsearch configuration
become: yes
template:
src: "{{ item }}.j2"
dest: "/etc/elasticsearch/{{ item }}"
owner: elasticsearch
group: elasticsearch
mode: u=r,g=,o=
# FIXME: je pense qu'on a pas besoin de redémarrer
# Elasticsearch pour roles.yml, users_roles et users
loop:
- elasticsearch.yml
- roles.yml
- users_roles
- users
notify: Restart elasticsearch
- name: Enable elasticsearch service
become: yes
systemd:
name: elasticsearch.service
state: started
enabled: yes
...