forked from evolix/ansible-roles
elasticsearch: update curator debian repository
This commit is contained in:
parent
bcd3553cbb
commit
cc12f15b23
|
@ -1,9 +1,13 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
|
- name: Use the correct debian repository
|
||||||
|
set_fact:
|
||||||
|
curator_debian_repository: '{% if ansible_distribution_release == "jessie" %}debian{% else %}debian9{% endif %}'
|
||||||
|
|
||||||
- name: Curator sources list is available
|
- name: Curator sources list is available
|
||||||
apt_repository:
|
apt_repository:
|
||||||
repo: "deb http://packages.elastic.co/curator/4/debian stable main"
|
repo: "deb https://packages.elastic.co/curator/5/{{ curator_debian_repository }} stable main"
|
||||||
filename: elastic
|
filename: curator
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
state: present
|
state: present
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Reference in a new issue