ansible-roles/elasticsearch/tasks/packages.yml

56 lines
1.0 KiB
YAML
Raw Normal View History

---
2017-07-13 14:43:07 +02:00
- name: APT https transport is enabled
apt:
name: apt-transport-https
state: present
tags:
- elasticsearch
- packages
2021-05-06 11:33:19 +02:00
- name: Elastic embedded GPG key is absent
2017-07-13 14:43:07 +02:00
apt_key:
id: "D88E42B4"
keyring: /etc/apt/trusted.gpg
state: absent
tags:
- elasticsearch
- packages
- name: Elastic GPG key is installed
copy:
src: elastic.asc
dest: /etc/apt/trusted.gpg.d/elastic.asc
force: yes
mode: "0644"
2021-05-26 13:47:34 +02:00
owner: root
group: root
2017-07-13 14:43:07 +02:00
tags:
- elasticsearch
- packages
2017-07-13 14:43:07 +02:00
- name: Elastic sources list is available
apt_repository:
repo: "deb https://artifacts.elastic.co/packages/{{ elastic_stack_version | mandatory }}/apt stable main"
2017-11-14 10:26:48 +01:00
filename: elastic
2017-07-13 14:43:07 +02:00
state: present
update_cache: yes
tags:
- elasticsearch
- packages
- name: Elasticsearch is installed
apt:
name: elasticsearch
state: present
tags:
- elasticsearch
- packages
- name: Elasticsearch service is enabled
service:
name: elasticsearch
enabled: yes
2017-07-13 14:43:07 +02:00
tags:
2021-05-02 01:11:39 +02:00
- elasticsearch