Install Metricbeat.
Everything is in the tasks/main.yml file.
tasks/main.yml
elastic_stack_version
6.x