31 lines
No EOL
658 B
YAML
31 lines
No EOL
658 B
YAML
---
|
|
- 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
|
|
... |