This commit is contained in:
chendelin1982 2022-12-01 08:52:45 +08:00
parent 7e9965d936
commit 5070dd32f7
10 changed files with 3 additions and 5 deletions

View file

@ -1,7 +1,7 @@
- name: Install {{appname}}
include_tasks: tasks/install.yml
vars:
app: "elk"
app: "elastic"
- block:
- pause:
@ -9,9 +9,7 @@
echo: no
- name: Output elk version
shell: |
rm -f /tmp/containers_version.sh
wget -O /tmp/containers_version.sh https://raw.githubusercontent.com/Websoft9/StackHub/main/scripts/containers_version.sh
bash /tmp/containers_version.sh
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: |
@ -19,4 +17,4 @@
docker system prune --all --force
docker network create websoft9
args:
chdir: /data/apps/elk
chdir: /data/apps/elastic