Simple download binaries from official website and install Elastic.
There is only two variables that you can redefine in your playbook.
elastic_version: "7.14.0" # Use for download only this version of kibana
elastic_home: "/opt/kibana/{{ elastic_version }}" # Use for unpackage distro and create ELASTIC_HOME variable
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: elastic
roles:
- elastic
BSD
Sergey Chernyshov