-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-elk.yaml
50 lines (41 loc) · 918 Bytes
/
install-elk.yaml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
- name: Config ELK VM with Docker
hosts: elk
remote_user: azadmin
become: true
tasks:
- name: Install docker.io
apt:
update_cache: yes
force_apt_get: yes
name: docker.io
state: present
- name: Install python3-pip3
apt:
force_apt_get: yes
name: python3-pip
state: present
- name: Install Docker Module
pip:
name: docker
state: present
- name: Enable docker service
systemd:
name: docker
enabled: yes
- name: config system control module Use more memory
sysctl:
name: vm.max_map_count
value: "262144"
state: present
reload: yes
- name: Download and launch a docker elk container
docker_container:
name: elk
image: sebp/elk:761
state: started
restart_policy: always
published_ports:
- 5601:5601
- 9200:9200
- 5044:5044