
Latest versions of CentOS and RHEL already have YUM deprecated and future versions would drop support. This commit moves browbeat to use the package module instead of yum. Package module will select DNF if it is available on the system rather than yum. Change-Id: I5892fd6209e3be7f3cb69bcfe3df54726043354a
31 lines
611 B
YAML
31 lines
611 B
YAML
|
|
---
|
|
#
|
|
# install curator tool for managing elasticsearch
|
|
#
|
|
|
|
- name: Copy curator yum repo file
|
|
copy:
|
|
src=curator.repo
|
|
dest=/etc/yum.repos.d/curator.repo
|
|
owner=root
|
|
group=root
|
|
mode=0644
|
|
become: true
|
|
when: install_curator_tool
|
|
|
|
- name: Import curator GPG Key
|
|
rpm_key: key=http://packages.elastic.co/GPG-KEY-elasticsearch
|
|
state=present
|
|
when: install_curator_tool
|
|
|
|
- name: Install curator and python-setuptools
|
|
package:
|
|
name: "{{ item }}"
|
|
state: present
|
|
become: true
|
|
with_items:
|
|
- python-elasticsearch-curator
|
|
- python-setuptools
|
|
when: install_curator_tool
|