websoft9/apps/roles/elastic/tasks/main.yml
chendelin1982 5070dd32f7 elastic
2022-12-01 08:52:45 +08:00

21 lines
644 B
YAML

- name: Install {{appname}}
include_tasks: tasks/install.yml
vars:
app: "elastic"
- block:
- pause:
prompt: "Please login to Kibana UI and check it, then input Enter to continue"
echo: no
- name: Output elk version
shell: |
echo "elk_version:" $(docker exec -i elastic-elasticsearch bin/elasticsearch --version | awk -F ' ' '{print $2}') |sudo tee -a /data/logs/install_version.txt
sleep 20s
- name: Delete contains and images resources
shell: |
docker compose down -v
docker system prune --all --force
docker network create websoft9
args:
chdir: /data/apps/elastic