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