Created
September 29, 2017 09:29
-
-
Save mloc/37815f52ac1ea01c7c4ac043894ea703 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- | |
become: true | |
hosts: all | |
tasks: | |
- | |
name: "elasticsearch" | |
docker_container: | |
name: elasticsearch | |
docker_host: "{{docker_host|default()}}" | |
image: "docker.elastic.co/elasticsearch/elasticsearch:5.6.2" | |
env: | |
"http.host": "0.0.0.0" | |
"xpack.security.enabled": "false" | |
ports: | |
- "127.0.0.1:9200:9200" | |
- | |
name: "logstash" | |
docker_container: | |
name: logstash | |
docker_host: "{{docker_host|default()}}" | |
image: "docker.elastic.co/elasticsearch/elasticsearch:5.6.2" | |
- | |
name: "ELK network" | |
docker_network: | |
name: elk | |
docker_host: "{{docker_host|default()}}" | |
connected: | |
- elasticsearch | |
- logstash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment