Simple download binaries from official website and install elasticsearch.
There is only two variables that you can redefine in your playbook.
elastic_version: "7.1g.1" # Use for download only this version of elastic
elastic_home: "/opt/elastic/{{ elastic_version }}" # Use for unpackage distro and create ES_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: all
roles:
- elastic
BSD
Netology Students