Simple download binaries from official website and install Logstash.
There is only two variables that you can redefine in your playbook.
logstash_version: "7.13.2"
logstash_home: "/opt/logstash/{{ logstash_version }}"
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: all
roles:
- logstash
BSD
Netology Students