ELK Install
---
- hosts: elk
become: true
tasks:
- name: Set vm.max_map_count to 262144
ansible.posix.sysctl:
name: vm.max_map_count
value: 262144
state: present
reload: yes
- name: docker.io
apt:
update_cache: yes
name: docker.io
state: present
- name: Install pip3
apt:
name: python3-pip
state: present
- name: Install Docker
pip:
name: docker
state: present
- name: Install Elk docker container
docker_container:
name: elk
image: sebp/elk:761
published_ports:
- 5601:5601
- 9200:9200
- 5044:5044
restart_policy: unless-stopped
state: started
- name: Start Docker
systemd:
enabled: yes
name: docker