summaryrefslogtreecommitdiffstats
path: root/opt/infra/roles/elk/tasks/main.yml
blob: 12bc7bf6d6c79412c842364951a903d9237613bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
##############################################################################
# Copyright (c) 2017 ZTE Corporation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
---
- name: pulling elasticsearch and kibana
  become: true
  docker_image: name={{ item }} state=present
  with_items:
    - elasticsearch
    - kibana

- name: setting up elasticsearch
  become: true
  docker_container:
    name: esearch
    image: elasticsearch
    published_ports: 9200:9200

- name: setting up kibana
  become: true
  docker_container:
    name: kibana
    image: kibana
    published_ports: 5601:5601
    links: esearch:elasticsearch