32 lines
684 B
YAML
32 lines
684 B
YAML
---
|
|
- name: install dependencies packages
|
|
package:
|
|
name:
|
|
- apt-transport-https
|
|
- python-requests
|
|
- python3-requests
|
|
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
|
|
package:
|
|
name: elasticsearch
|
|
retries: 2
|
|
register: result
|
|
until: result is succeeded
|
|
tags: elasticsearch
|