21 lines
708 B
YAML
21 lines
708 B
YAML
- name: 创建es-statefulset.yaml文件
|
|
template: src=es-statefulset.yaml dest={{ base_dir }}/manifests/es-statefulset.yaml
|
|
delegate_to: localhost
|
|
run_once: true
|
|
when: not ansible_check_mode
|
|
|
|
- name: 部署es-statefulset
|
|
shell: "{{bin_dir}}/kubectl apply -f {{ base_dir }}/manifests/es-statefulset.yaml"
|
|
delegate_to: localhost
|
|
run_once: true
|
|
|
|
- name: 创建es-indices-cleanup.yaml文件
|
|
template: src=es-indices-cleanup.yaml dest={{ base_dir }}/manifests/es-indices-cleanup.yaml
|
|
delegate_to: localhost
|
|
run_once: true
|
|
|
|
- name: 部署es-index-clean-job
|
|
shell: "{{bin_dir}}/kubectl apply -f {{ base_dir }}/manifests/es-indices-cleanup.yaml"
|
|
delegate_to: localhost
|
|
run_once: true
|