23 lines
583 B
YAML
23 lines
583 B
YAML
---
|
|
- name: Install dependencies packages
|
|
ansible.builtin.package:
|
|
name:
|
|
- apt-transport-https
|
|
- python3-requests
|
|
tags: elasticsearch
|
|
|
|
- name: Add repository key
|
|
ansible.builtin.apt_key:
|
|
url: https://artifacts.elastic.co/GPG-KEY-elasticsearch
|
|
tags: elasticsearch
|
|
|
|
- name: Add repository
|
|
ansible.builtin.apt_repository:
|
|
repo: "deb https://artifacts.elastic.co/packages/{{ elasticsearch_major_version }}.x/apt stable main"
|
|
tags: elasticsearch
|
|
|
|
- name: Install package
|
|
ansible.builtin.package:
|
|
name:
|
|
- elasticsearch
|
|
tags: elasticsearch
|