ansible-role-elasticsearch/tasks/packages.yml

32 lines
732 B
YAML

---
- name: install dependencies packages
ansible.builtin.package:
name:
- apt-transport-https
- python3-requests
retries: 2
register: result
until: result is succeeded
tags: elasticsearch
- name: add repository key
ansible.builtin.apt_key:
url: https://artifacts.elastic.co/GPG-KEY-elasticsearch
retries: 2
register: result
until: result is succeeded
tags: elasticsearch
- name: add repository
ansible.builtin.apt_repository:
repo: deb https://artifacts.elastic.co/packages/7.x/apt stable main
tags: elasticsearch
- name: install package
ansible.builtin.package:
name:
- elasticsearch
retries: 2
register: result
until: result is succeeded
tags: elasticsearch