mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-26 23:23:22 +02:00
24 lines
728 B
YAML
24 lines
728 B
YAML
---
|
|
- 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
|
|
yum_repository:
|
|
name: elasticsearch
|
|
file: elasticsearch
|
|
description: ElasticSearch
|
|
baseurl: https://artifacts.elastic.co/packages/{{ es_major_version }}.x/yum
|
|
gpgcheck: True
|
|
repo_gpgcheck: True
|
|
gpgkey: https://artifacts.elastic.co/GPG-KEY-elasticsearch
|
|
state: absent
|
|
tags: repo,logs
|