2020-02-09 14:15:24 +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
|
|
|
retries: 2
|
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
|
|
|
tags: elasticsearch
|
|
|
|
|
|
|
|
- name: add repository key
|
2022-04-07 12:55:14 +00:00
|
|
|
ansible.builtin.apt_key:
|
2020-02-09 14:15:24 +00:00
|
|
|
url: https://artifacts.elastic.co/GPG-KEY-elasticsearch
|
|
|
|
retries: 2
|
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
|
|
|
tags: elasticsearch
|
|
|
|
|
|
|
|
- name: add repository
|
2022-04-07 12:55:14 +00:00
|
|
|
ansible.builtin.apt_repository:
|
2020-02-09 14:15:24 +00:00
|
|
|
repo: deb https://artifacts.elastic.co/packages/7.x/apt stable main
|
|
|
|
tags: elasticsearch
|
|
|
|
|
|
|
|
- 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
|
|
|
retries: 2
|
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
|
|
|
tags: elasticsearch
|