Install and configure the ELK stack:
Elastic Beats:
Install ansible, ipaddr and netaddr:
pip install -r requirements.txt
You can refer to the README.md file in each role directory:
you can also explore all roles variables here
Install from GitHub
ansible-galaxy collection install git+https://github.com/garutilorenzo/ansible-collection-elk
How to use this Ansible collection
To test this collection you can use Vagrant and Virtualbox to bring up a example infrastructure. Once you have downloaded this repo use Vagrant to start the virtual machines:
vagrant up
In the Vagrantfile you can inject your public ssh key directly in the authorized_keys of the vagrant user. You have to change the CHANGE_ME placeholder in the Vagrantfile. You can also adjust the number of the vm deployed by changing the NNODES variable (Default: 6)
Full tutorial available here