ansible-role-elasticsearch/tasks/packages.yml

32 lines
832 B
YAML
Raw Normal View History

2020-02-09 14:15:24 +00:00
---
2023-07-05 09:36:13 +00:00
- name: Install dependencies packages
2022-04-07 12:55:14 +00:00
ansible.builtin.package:
2020-08-09 06:39:25 +00:00
name:
2020-02-09 14:15:24 +00:00
- apt-transport-https
2020-08-09 06:39:25 +00:00
- python3-requests
2020-02-09 14:15:24 +00:00
tags: elasticsearch
2023-07-05 09:36:13 +00:00
- name: Add repository key
2024-02-16 09:34:28 +00:00
ansible.builtin.get_url:
2020-02-09 14:15:24 +00:00
url: https://artifacts.elastic.co/GPG-KEY-elasticsearch
2024-02-16 09:34:28 +00:00
dest: /etc/apt/keyrings/elastic.asc
owner: root
group: root
mode: 0644
checksum: sha256:db52809c5f6b27f9c2bed45cb43e398c659275f3d35305653c6750a0db90f5eb
2020-02-09 14:15:24 +00:00
tags: elasticsearch
2023-07-05 09:36:13 +00:00
- name: Add repository
2022-04-07 12:55:14 +00:00
ansible.builtin.apt_repository:
2024-02-16 09:34:28 +00:00
repo: >
deb [signed-by=/etc/apt/keyrings/elastic.asc]
https://artifacts.elastic.co/packages/{{ elasticsearch_major_version }}.x/apt stable main
filename: elastic
2020-02-09 14:15:24 +00:00
tags: elasticsearch
2023-07-05 09:36:13 +00:00
- name: Install package
2022-04-07 12:55:14 +00:00
ansible.builtin.package:
2022-01-18 10:20:31 +00:00
name:
- elasticsearch
2020-02-09 14:15:24 +00:00
tags: elasticsearch