ansible-roles/roles/repo_elasticsearch/tasks/install_RedHat.yml

24 lines
728 B
YAML
Raw Normal View History

2021-12-01 19:13:34 +01:00
---
2022-01-26 16:00:08 +01:00
- name: Add ElasticSearch OSS repository
yum_repository:
name: elasticsearch-oss
file: elasticsearch
description: ElasticSearch OSS
baseurl: https://artifacts.elastic.co/packages/oss-{{ es_major_version }}.x/yum
gpgcheck: True
repo_gpgcheck: True
gpgkey: https://artifacts.elastic.co/GPG-KEY-elasticsearch
tags: repo,logs
- name: Handle Elasticsearch (non OSS) repository
2021-12-01 19:13:34 +01:00
yum_repository:
name: elasticsearch
2022-01-26 16:00:08 +01:00
file: elasticsearch
2021-12-01 19:13:34 +01:00
description: ElasticSearch
2022-01-26 16:00:08 +01:00
baseurl: https://artifacts.elastic.co/packages/{{ es_major_version }}.x/yum
2021-12-01 19:13:34 +01:00
gpgcheck: True
repo_gpgcheck: True
gpgkey: https://artifacts.elastic.co/GPG-KEY-elasticsearch
2022-01-26 16:00:08 +01:00
state: absent
tags: repo,logs