Ansible Playbook Example for Elastic Stack (Elasticsearch, Logstash, Kibana, Beats)
hosts/elastic.hosts
Note: will be installed on the same hosts
sudo ansible-playbook -i hosts/elastic.hosts playbooks/elk_setup.yml
sudo ansible-playbook -i hosts/elastic.hosts playbooks/filebeat.yml
Read more about this playbook here