mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-07 17:16:55 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
14
roles/elasticsearch/tasks/directories.yml
Normal file
14
roles/elasticsearch/tasks/directories.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
|
||||
- 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
|
Reference in New Issue
Block a user