Update main.yml

This commit is contained in:
qiaofeng1227 2022-06-30 14:43:44 +08:00 committed by GitHub
parent 79f4d68f22
commit 8a0fa9df2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,6 @@ init_docker:
password: "elastic123"
service_after: "docker.service"
compose_path: "/data/apps/elk/docker-compose.yml"
commands:
compose_commands:
- sudo sed -i "s/elastic123/$new_password/g" `grep 'elastic123' /data/apps/elk/.env -rnl`
- sudo sed -i "s/elastic123/$new_password/g" `grep 'elastic123' /data/apps/elk/src/logstash/pipeline/logstash.conf -rnl`