ansible-roles/elasticsearch/tasks/curator.yml
Jérémy Lecour bee57a0b3c
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build is failing
change distribution release codename
Ansible 2.2 is too old to know about buster.
Let's use LSB for that.
2019-06-18 17:35:28 +02:00

24 lines
560 B
YAML

---
- name: Use the correct debian repository
set_fact:
curator_debian_repository: '{% if ansible_lsb.codename == "jessie" %}debian{% else %}debian9{% endif %}'
- name: Curator sources list is available
apt_repository:
repo: "deb https://packages.elastic.co/curator/5/{{ curator_debian_repository }} stable main"
filename: curator
update_cache: yes
state: present
tags:
- curator
- packages
- name: Curator package is installed
apt:
name: elasticsearch-curator
state: present
tags:
- curator
- packages