The role adds Elastic repositories to the package manager. It's main use is in connection with other roles that provide installation and configuration of the Elastic Stack.
- You need
gpg
to be installed because packages / repositories are digitally signed and verified. - Debian and Ubuntu hosts need to have
apt-transport-https
installed to deal with Elastics repositories. - Ubuntu hosts also need to have
gpg-agent
installed. - For SuSE hosts you need the Ansible collection
community.general
on your Ansible controller.
- elasticstack_release: Major release version of Elastic stack to configure. (default:
7
).7
and8
are supported. - elasticstack_variant: Variant of the stack to install. Valid values:
elastic
oross
. (default:elastic
). - elasticstack_enable_repos: Enable repositories after creating them. (default:
true
) Only works on RPM based distributions!
Please note that no oss
versions are available for Elastic Stack later than 7
. This role will fail if you try to install them.
If you want to be able to update your operating system without worrying about accidentally upgrading Elastic Stack, set elasticstack_enable_repos
to false
. The roles in this collection will enable the repository in case they need it. Keep in mind that this will only work on rpm based distributions.
- hosts: all
become: yes
collections:
- netways.elasticstack
roles:
- repos