ansible-role-elasticsearch/tasks/packages.yml

33 lines
668 B
YAML
Raw Normal View History

2020-02-09 14:15:24 +00:00
---
- name: install dependencies packages
2020-08-09 06:39:25 +00:00
package:
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
retries: 2
register: result
until: result is succeeded
tags: elasticsearch
- name: add repository key
apt_key:
url: https://artifacts.elastic.co/GPG-KEY-elasticsearch
retries: 2
register: result
until: result is succeeded
tags: elasticsearch
- name: add repository
apt_repository:
repo: deb https://artifacts.elastic.co/packages/7.x/apt stable main
tags: elasticsearch
- name: install package
2020-08-09 06:39:25 +00:00
package:
2022-01-18 10:20:31 +00:00
name:
- elasticsearch
2020-02-09 14:15:24 +00:00
retries: 2
register: result
until: result is succeeded
tags: elasticsearch