Deploy Logstash Docker container.
Configure the role.
logstash_image: docker.elastic.co/logstash/logstash:7.6.1
logstash_hostname: logst01
logastash_description: log extractor # default: Logstash
logstash_data_dir: /usr/share/logst # default: "/usr/share/{{ logstash_hostname }}"
logstash_elasticsearch_hostname: elastic01
logstash_elasticsearch_username: elastic
logstash_elasticsearch_password: "{{ vault_logstash_elasticsearch_password }}"
And include it in your playbook.
- hosts: logstash
roles:
- role: logstash