You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
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
...