mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-26 07:05:19 +02:00
15 lines
474 B
YAML
15 lines
474 B
YAML
---
|
|
|
|
- name: Ensure the data dir exists
|
|
file: path={{ es_data_dir }} state=directory
|
|
tags: es
|
|
|
|
# We do it in two steps, so that parent dirs aren't created with restrictive permissions
|
|
- name: Restrict permissions on data dir
|
|
file: path={{ es_data_dir }} state=directory owner=elasticsearch group=elasticsearch mode=750
|
|
tags: es
|
|
|
|
- name: Create backup dir
|
|
file: path={{ es_backup_dir }} state=directory owner=elasticsearch group=elasticsearch mode=700
|
|
tags: es
|