ansible-role-elasticsearch/tasks/packages.yml

31 lines
832 B
YAML

---
- name: Install dependencies packages
ansible.builtin.package:
name:
- apt-transport-https
- python3-requests
tags: elasticsearch
- name: Add repository key
ansible.builtin.get_url:
url: https://artifacts.elastic.co/GPG-KEY-elasticsearch
dest: /etc/apt/keyrings/elastic.asc
owner: root
group: root
mode: 0644
checksum: sha256:db52809c5f6b27f9c2bed45cb43e398c659275f3d35305653c6750a0db90f5eb
tags: elasticsearch
- name: Add repository
ansible.builtin.apt_repository:
repo: >
deb [signed-by=/etc/apt/keyrings/elastic.asc]
https://artifacts.elastic.co/packages/{{ elasticsearch_major_version }}.x/apt stable main
filename: elastic
tags: elasticsearch
- name: Install package
ansible.builtin.package:
name:
- elasticsearch
tags: elasticsearch