Skip to content

Instantly share code, notes, and snippets.

@mloc
Created September 28, 2017 11:31
Show Gist options
  • Save mloc/ca7c7af9cdef134acea8d445a4c1fe18 to your computer and use it in GitHub Desktop.
Save mloc/ca7c7af9cdef134acea8d445a4c1fe18 to your computer and use it in GitHub Desktop.
---
-
become: true
hosts: all
tasks:
-
name: "elasticsearch"
docker_container:
name: elasticsearch
docker_host: "{{docker_host}}"
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: "ELK network"
docker_network:
name: elk
docker_host: "{{docker_host}}"
connected:
- elasticsearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment