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
gpgto be installed because packages / repositories are digitally signed and verified. - Debian and Ubuntu hosts need to have
apt-transport-httpsinstalled to deal with Elastics repositories. - Ubuntu hosts also need to have
gpg-agentinstalled. - For SuSE hosts you need the Ansible collection
community.generalon your Ansible controller.
- elasticstack_release: Major release version of Elastic stack to configure. (default:
7).7and8are supported. - elasticstack_variant: Variant of the stack to install. Valid values:
elasticoross. (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