ccyunchina-deploy/roles/gpaas/efk/elasticsearch/tasks/main.yml

30 lines
932 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

- name: 创建数据目录
file: name={{es_data_path}}/data state=directory mode=0755 owner=1000 group=1000 recurse=yes
- name: 创建日志目录
file: name={{es_data_path}}/logs state=directory mode=0755 owner=1000 group=1000 recurse=yes
#- name: 修改系统文件限制
# sysctl:
# name: vm.max_map_count
# value: 655360
# sysctl_set: yes
# state: present
# reload: yes
- include_tasks : container.yml
#- name: 等待cloud-service服务启动成功
# shell: "{{bin_dir}}/kubectl get statefulset elasticsearch -n kube-system -o jsonpath='{.status.readyReplicas}'"
# register: status_result
# until: 'groups["elasticsearch"]|length|string == status_result.stdout'
# retries: 50
# delay: 5
# run_once: true
#- name: 重启es节点,目前发现部署elasticsearch节点会出现网络问题重启可以恢复
# shell: shutdown -r
#- name: wait for connecting
# wait_for_connection: delay=60