This code is published as part of the corresponding blog article at the Toptal Engineering Blog
Visit https://www.toptal.com/blog and subscribe to our newsletter to read great posts!
For upgrades withing the same major version. Eg: 6.4.3 to 6.5.0.
Edit the inventory
to reflect your setup, run the playbook:
$ ansible-playbook -i inventory -e elk_version=6.5.0 main.yml